Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class TheBiggestOf3Numbers
- {
- static void Main()
- {
- Console.Write("a = ");
- double a = double.Parse(Console.ReadLine());
- Console.Write("b = ");
- double b = double.Parse(Console.ReadLine());
- Console.Write("c = ");
- double c = double.Parse(Console.ReadLine());
- if (a > b && a > c)
- {
- Console.WriteLine("biggest is " + a);
- }
- else if (b > a && b > c)
- {
- Console.WriteLine("biggest is " + b);
- }
- else
- {
- Console.WriteLine("biggest is " + c);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement