Suma n liczb (przy czym n jest znane).

0+5=5

5+7=12

12+(-1)=11

11+4=15

Specyfikacja:

dane:

qwerty - sumowany składnik, qwerty należy do R

Wynik:

wynik - suma n liczb, wynik należy do R

0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic

Start

czytaj qwerty

wynik:=0

qwerty=0

N

pisz wynik

STOP

T

wynik:=wynik+qwerty