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