Advertisement
Guest User

Untitled

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