Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Diagnostics;
- using System.Threading;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = Convert.ToInt32(Console.ReadLine());
- int b, c;
- Random vel = new Random();
- Random vel2 = new Random();
- while (true)
- {
- b = vel2.Next(0, 15);
- c = vel2.Next(0, 15);
- Type type = typeof(ConsoleColor);
- Console.BackgroundColor = (ConsoleColor)b;
- Console.ForegroundColor = (ConsoleColor)c;
- Console.Write("{0} ", vel.Next(1, a));
- Thread.Sleep(3);
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement