Advertisement
TzvetanIG

The Biggest Number

Mar 20th, 2014
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using System;
  2.  
  3. class TheBiggestOf3Numbers
  4. {
  5.     static void Main()
  6.     {
  7.         double a = double.Parse(Console.ReadLine());
  8.         double b = double.Parse(Console.ReadLine());
  9.         double c = double.Parse(Console.ReadLine());
  10.         double buffer = a;
  11.  
  12.  
  13.         if ( b >= buffer)
  14.         {
  15.             buffer = b;
  16.         }
  17.  
  18.         if (c >= buffer)
  19.         {
  20.             buffer = c;
  21.         }
  22.  
  23.         Console.WriteLine(buffer);
  24.  
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement