Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Кто знает как написать код к этой програме ?

0 votes
asked Dec 2, 2018 by Карина Готвянская (240 points)
Составить программу SUM, которая:
1) вводит с клавиатуры последовательность целых чисел,
   заканчивающуюся нулем;
2) находит сумму всех членов последовательности;
3) выводит на экран найденное значение в виде:
   "SUM= ...".

Пример

Введите последовательность целых чисел. Ноль - признак конца.
a[1]= 13
a[2]= 21
a[3]= 2
a[4]= 14
a[5]= -1
a[6]= -2
a[7]= 0
SUM=47

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...