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.Threading.Tasks;
- namespace ConsoleApplication9
- {
- class Program
- {
- public static int laps = 0;
- public static ConsoleKeyInfo tangent;
- static void Main(string[] args)
- {
- LapCounter();
- }
- public static void LapCounter()
- {
- for (int i = 0; i < 10; i++)
- {
- Console.WriteLine(laps++);
- Console.ReadKey();
- Console.Clear();
- if (laps == 10)
- {
- laps = 1;
- Console.Clear();
- LapCounter();
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement