Advertisement
TodorovH

The Biggest of 3 Numbers

Mar 29th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. using System;
  2.  
  3. // Write a program that finds theย biggest of three numbers.
  4.  
  5. class TheBiggestOf3Numbers
  6. {
  7. static void Main()
  8. {
  9. Console.WriteLine("Enter three numbers:");
  10. double a = double.Parse(Console.ReadLine());
  11. double b = double.Parse(Console.ReadLine());
  12. double c = double.Parse(Console.ReadLine());
  13. Console.WriteLine("The biggest number is {0}", Math.Max(Math.Max(a, b), c));
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement