Advertisement
saluxx

max m

Oct 1st, 2015
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 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 ConsoleApplication9
  8. {
  9. class Program
  10. {
  11. public static int laps = 0;
  12.  
  13. public static ConsoleKeyInfo tangent;
  14.  
  15. static void Main(string[] args)
  16. {
  17. LapCounter();
  18. }
  19. public static void LapCounter()
  20. {
  21. for (int i = 0; i < 10; i++)
  22. {
  23. Console.WriteLine(laps++);
  24. Console.ReadKey();
  25. Console.Clear();
  26.  
  27. if (laps == 10)
  28. {
  29. laps = 1;
  30. Console.Clear();
  31. LapCounter();
  32. }
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. }
  47. }
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement