Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class program
- {
- static void Main(string[] args)
- {
- Console.Write("Please enter a number of flips: ");
- int a = Convert.ToInt32(Console.ReadLine());
- int[] nums = new int[a];
- Random rand = new Random();
- for (int i = 0; i <= a+1; i++)
- {
- int b = rand.Next(2);
- nums[i] = b;
- Console.WriteLine(nums[i]);
- }
- Console.ReadKey();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement