Advertisement
Qrist

32

Apr 5th, 2020
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3.  
  4. namespace Unknown
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             int centuries = int.Parse(Console.ReadLine());
  11.             int year = centuries * 100;
  12.             int days =(int)(year * 365.2422);
  13.             int hours =(int) days * 24;
  14.             int minutes = hours * 60;
  15.             Console.WriteLine("{0} centuries = {1} year = {2} days = {3} hours = {4} minutes",
  16.                 centuries,year,days,hours,minutes);
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement