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 fdsf
- {
- class Program
- {
- static void Main(string[] args)
- {
- var kozunak = int.Parse(Console.ReadLine());
- string comand = "";
- int sum = 0;
- for (int i = 0; i < kozunak; i++)
- {
- comand = Console.ReadLine();
- while (comand!="Stop")
- {
- int grade= int.Parse(comand);
- sum += grade;
- comand = Console.ReadLine();
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement