Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp9
- {
- class Program
- {
- static void Main(string[] args)
- {
- double[] a = new double[5];
- for (int i = 0; i < 5; i++)
- {
- double numbers = double.Parse(Console.ReadLine());
- a[i] += numbers;
- }
- Array.Sort(a);
- Array.Reverse(a);
- Console.WriteLine(a[0]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement