Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Labs20180521
- {
- class Program
- {
- static void Main(string[] args)
- {
- //01.Centuries to Minutes
- int centuries = int.Parse(Console.ReadLine());
- int years = centuries * 100;
- int days = (int)(years * 365.2422);
- int hours = days * 24;
- int 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