Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
379
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 Time_15min
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. var hour = double.Parse(Console.ReadLine());
  14. var min = double.Parse(Console.ReadLine());
  15. var minplus15 = min + 15;
  16.  
  17. if (minplus15 > 59)
  18. {
  19.  
  20. minplus15 -= 60;
  21. hour += 1;
  22. }
  23. if (hour == 24)
  24. {
  25. hour = 0;
  26. }
  27. Console.WriteLine("{0}:{1:00}", hour, minplus15);
  28.  
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement