Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Numerics;
- namespace Demo
- {
- class Program
- {
- static void Main(string[] args)
- {
- int centures = int.Parse(Console.ReadLine());
- short years = (short)(centures * 100);
- int days = (int)(years * 365.2422);
- int hours = days * 24;
- int minutes = hours * 60;
- ulong seconds = (ulong)minutes * 60;
- BigInteger milisec = seconds * 1000;
- BigInteger microsec = milisec * 1000;
- BigInteger nanosec = microsec * 1000;
- Console.WriteLine($"{centures} centuries = {years} years = {days} days = {hours} hours = {minutes} minutes = {seconds} seconds = {milisec} milliseconds = {microsec} microseconds = {nanosec} nanoseconds");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment