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 Exercise_1
- {
- class Program
- {
- static void Main(string[] args)
- {
- byte centuries = byte.Parse(Console.ReadLine());
- int years = centuries * 100;
- ulong days = (ulong)(years * 365.2422);
- ulong hours = 24 * days;
- ulong minutes = 60 * hours;
- ulong seconds = 60 * minutes;
- ulong milliseconds = 1000 * seconds;
- ulong microseconds = 1000 * milliseconds;
- ulong nanoseconds = 1000 * microseconds;
- Console.WriteLine(centuries);
- Console.WriteLine(years);
- Console.WriteLine(days);
- Console.WriteLine(hours);
- Console.WriteLine(minutes);
- Console.WriteLine(seconds);
- Console.WriteLine(milliseconds);
- Console.WriteLine(microseconds);
- Console.WriteLine(nanoseconds);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment