Advertisement
ss3434

Untitled

Oct 30th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace fdsf
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13.  
  14. var kozunak = int.Parse(Console.ReadLine());
  15. string comand = "";
  16. int sum = 0;
  17. for (int i = 0; i < kozunak; i++)
  18. {
  19. comand = Console.ReadLine();
  20. while (comand!="Stop")
  21. {
  22. int grade= int.Parse(comand);
  23. sum += grade;
  24. comand = Console.ReadLine();
  25. }
  26.  
  27.  
  28. }
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement