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 ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[] list = new int[1];
- int summ;
- bool start = true;
- int i = 0;
- Console.WriteLine("Вводите числа и как только введете sum посчитают все числа,sort выведет все числа в порядке уменьшения");
- while (start == true)
- {
- list[i] = Convert.ToInt32(Console.ReadLine());
- int[] templist = new int[list.Length + 1];
- for (int j = 0; j < list.Length; j++)
- {
- templist[j] = list[j];
- }
- list = templist;
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement