Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.66 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 _05.BiggestOf3
  8. {
  9.     class BiggestOf3
  10.     {
  11.         static void Main()
  12.         {
  13.             float a = float.Parse(Console.ReadLine());
  14.             float b = float.Parse(Console.ReadLine());
  15.             float c = float.Parse(Console.ReadLine());
  16.             float biggest = a;
  17.  
  18.             if (biggest < b)
  19.             {
  20.                 biggest = b;
  21.             }
  22.             else if (biggest < c)
  23.             {
  24.                 biggest = c;
  25.             }
  26.  
  27.             Console.WriteLine(biggest);
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement