Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace itvdnCourse
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Enter number1");
- float a = float.Parse(Console.ReadLine());
- Console.WriteLine("Enter number2");
- float b = float.Parse(Console.ReadLine());
- Console.WriteLine("Enter number3");
- float c = float.Parse(Console.ReadLine());
- if (a <= b && b <= c)
- {
- Console.WriteLine(c);
- }
- else if (a < b && b > c)
- {
- Console.WriteLine(b);
- }
- else if (a >= b && b < c)
- {
- Console.WriteLine(a);
- }
- else if (a > b && b >c )
- {
- Console.WriteLine(a);
- }
- else if (a < b && b > c)
- {
- Console.WriteLine(a);
- }
- else if (a > b && b < c)
- {
- Console.WriteLine(a);
- }
- else
- {
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement