Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.81 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 asdasd
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double a = double.Parse(Console.ReadLine());
  14.             double b = double.Parse(Console.ReadLine());
  15.             double c = double.Parse(Console.ReadLine());
  16.  
  17.             if (a < b && a < c)
  18.             {
  19.                 Console.WriteLine($"a = {a} e nai-malkoto chislo");
  20.             }
  21.             else if (b < a && b < c)
  22.             {
  23.                 Console.WriteLine($"b = {b} e nai-malkoto chislo");
  24.             }
  25.             else if (c < a && c < b)
  26.             {
  27.                 Console.WriteLine($"c = {c} e nai-malkoto chislo");
  28.             }
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement