Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _01._From_centuries_to_minutes
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- //векове
- sbyte centirues = sbyte.Parse(Console.ReadLine());
- //години
- short years = (short)(centirues * 100);
- //дни
- int days = years * 365;
- //часове
- int hours = days * 24;
- //минути
- long minutes = hours * 60;
- Console.WriteLine($"{centirues} centuries = {years} years = {days} days = {hours} hours = {minutes} minutes");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment