Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4.  
  5. namespace domaci_ukol
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. int Rok = DateTime.Now.Year;
  12. int prevodkaStoleti = ((Rok / 100) % 4);
  13. int b = (Rok % 100);
  14. int c = (b / 4);
  15. int prevodkaMesicu = (DateTime.Now.Month);
  16.  
  17.  
  18. Console.WriteLine("Po Ut St Ct Pa So Ne");
  19. Console.WriteLine (Rok) ;
  20. Console.WriteLine(prevodkaStoleti);
  21. Console.WriteLine(b);
  22. Console.WriteLine(c);
  23. Console.WriteLine(prevodkaMesicu);
  24.  
  25.  
  26.  
  27.  
  28. int i = 1;
  29.  
  30. while ((i = Console.Read()) != 1)
  31. {
  32. i = i++;
  33.  
  34. }
  35.  
  36. Console.WriteLine(string.Format("{0:G2}", i));
  37.  
  38. Console.ReadLine();
  39. }
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement