Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace domaci_ukol
- {
- class Program
- {
- static void Main(string[] args)
- {
- int Rok = DateTime.Now.Year;
- int prevodkaStoleti = ((Rok / 100) % 4);
- int b = (Rok % 100);
- int c = (b / 4);
- int prevodkaMesicu = (DateTime.Now.Month);
- Console.WriteLine("Po Ut St Ct Pa So Ne");
- Console.WriteLine (Rok) ;
- Console.WriteLine(prevodkaStoleti);
- Console.WriteLine(b);
- Console.WriteLine(c);
- Console.WriteLine(prevodkaMesicu);
- int i = 1;
- while ((i = Console.Read()) != 1)
- {
- i = i++;
- }
- Console.WriteLine(string.Format("{0:G2}", i));
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement