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;
- namespace ConsoleApplication192_16_
- {
- class Program
- {
- static void Main(string[] args)
- {
- int hours = 0;
- int minutes = 0;
- int seconds = 0;
- while (hours<=24)
- {
- if (hours == 24)
- hours = 0;
- while (minutes<60)
- {
- if (minutes == 60)
- {
- hours++;
- minutes = 0;
- }
- while (seconds < 60)
- {
- seconds++;
- if (seconds == 60)
- {
- minutes++;
- seconds = 0;
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement