Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- class Program
- {
- static void Main()
- {
- Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int c = int.Parse(Console.ReadLine());
- int biggest = Math.Max(a, Math.Max(b, c));
- int smallest = Math.Min(a, Math.Min(b, c));
- double mean = (double) (a + b + c)/3;
- Console.WriteLine(biggest);
- Console.WriteLine(smallest);
- Console.WriteLine("{0:F2}", mean);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement