Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _05.BiggestOf3
- {
- class BiggestOf3
- {
- static void Main()
- {
- float a = float.Parse(Console.ReadLine());
- float b = float.Parse(Console.ReadLine());
- float c = float.Parse(Console.ReadLine());
- float biggest = a;
- if (biggest < b)
- {
- biggest = b;
- }
- else if (biggest < c)
- {
- biggest = c;
- }
- Console.WriteLine(biggest);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement