Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.01 KB | None | 0 0
  1. using System;
  2. namespace ПР3номер5
  3. {
  4.     class Program
  5.     {
  6.         static void Main(string[] args)
  7.         {
  8.             uint a, b, c, A, B, C;
  9.  
  10.             Console.WriteLine("Введите номер 1 аудитории");
  11.             a = uint.Parse(Console.ReadLine());
  12.             Console.WriteLine("Введите номер 2 аудитории");
  13.             b = uint.Parse(Console.ReadLine());
  14.             Console.WriteLine("Введите номер 3 аудитории");
  15.             c = uint.Parse(Console.ReadLine());
  16.             Console.WriteLine("Аудитория с минимальным номером на этаже: ");
  17.  
  18.             A = a % 100;
  19.             B = b % 100;
  20.             C = c % 100;
  21.             if ((A <= B) && (A <= C))
  22.                 Console.WriteLine(a.ToString());
  23.             if ((B < A) && (B <= C))
  24.                 Console.WriteLine(b.ToString());
  25.             if ((C < A) && (C < B))
  26.                 Console.WriteLine(c.ToString());
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement