8 lines
216 B
C#
8 lines
216 B
C#
int num = new Random().Next(1,11);
|
|
Console.WriteLine($"{(num%2==0 ? "heads" : "tails")}");
|
|
|
|
Console.WriteLine("------");
|
|
|
|
Random coin = new Random();
|
|
Console.WriteLine((coin.Next(0, 2) == 0) ? "heads" : "tails");
|