Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp3
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. do
  14. {
  15. Random Numbers = new Random();
  16.  
  17. int C = Numbers.Next(1, 16);
  18.  
  19. int xpos = Numbers.Next(1, 60);
  20. int ypos = Numbers.Next(1, 50);
  21.  
  22. Console.SetCursorPosition(xpos, ypos);
  23. Console.BackgroundColor = (ConsoleColor)C;
  24.  
  25. Console.Write(" S T E P H ");
  26.  
  27. } while (true);
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement