Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- // Write a program that finds the biggest of three numbers.
- class TheBiggestOf3Numbers
- {
- static void Main()
- {
- Console.WriteLine("Enter three numbers:");
- double a = double.Parse(Console.ReadLine());
- double b = double.Parse(Console.ReadLine());
- double c = double.Parse(Console.ReadLine());
- Console.WriteLine("The biggest number is {0}", Math.Max(Math.Max(a, b), c));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement