Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ПР3номер5
- {
- class Program
- {
- static void Main(string[] args)
- {
- uint a, b, c, A, B, C;
- Console.WriteLine("Введите номер 1 аудитории");
- a = uint.Parse(Console.ReadLine());
- Console.WriteLine("Введите номер 2 аудитории");
- b = uint.Parse(Console.ReadLine());
- Console.WriteLine("Введите номер 3 аудитории");
- c = uint.Parse(Console.ReadLine());
- Console.WriteLine("Аудитория с минимальным номером на этаже: ");
- A = a % 100;
- B = b % 100;
- C = c % 100;
- if ((A <= B) && (A <= C))
- Console.WriteLine(a.ToString());
- if ((B < A) && (B <= C))
- Console.WriteLine(b.ToString());
- if ((C < A) && (C < B))
- Console.WriteLine(c.ToString());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement