Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CenturiesToMinutes
- {
- class Program
- {
- static void Main(string[] args)
- {
- int centuries = int.Parse(Console.ReadLine());
- int years = centuries * 100;
- double days = Math.Floor(years * 365.2422);
- ulong hours = (ulong)days * 24;
- ulong minutes = hours * 60;
- Console.WriteLine($"{centuries} centuries = {years} years = {days} days = {hours} hours = {minutes} minutes");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement