ranee

Untitled

Jun 13th, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.86 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Dynamic;
  4. using System.Linq;
  5. using System.Runtime.Serialization;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8.  
  9. namespace CSLight
  10. {
  11.     class Program
  12.     {
  13.         static void Main(string[] args)
  14.         {
  15.  
  16.             int minutesTotal;
  17.             int hoursInLine;
  18.             int minutesInLine;
  19.             int numberOfGrandmothers;
  20.             Console.Write("Введите кол-во старушек:");
  21.             numberOfGrandmothers = Convert.ToInt32(Console.ReadLine());
  22.             minutesTotal = numberOfGrandmothers * 10;
  23.             hoursInLine = minutesTotal / 60;
  24.             minutesInLine = minutesTotal % 60;
  25.             Console.WriteLine($"Вы должны отстоять в очереди {hoursInLine} часа и {minutesInLine} минут.");
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment