Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Collections.Generic;
- namespace werf
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- List<int> devi = new List<int>();
- for (int i = 0; i < n; i++)
- {
- int pp = int.Parse(Console.ReadLine());
- devi.Add(pp);
- }
- Console.WriteLine($"min={devi.Min():F2}\nmax={devi.Max():F2}\nsum={devi.Sum():F2}\navg={devi.Average():F2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment