Advertisement
DaniPasteBin

Untitled

May 27th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Labs20180521
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.  
  10.             //01.Centuries to Minutes
  11.  
  12.  
  13.             int centuries = int.Parse(Console.ReadLine());
  14.             int years = centuries * 100;
  15.             int days = (int)(years * 365.2422);
  16.             int hours = days * 24;
  17.             int minutes=hours* 60;
  18.  
  19.             Console.WriteLine($"{centuries} centuries = {years} years = {days} days = {hours} hours = {minutes} minutes");
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement