to write the program for determination of the sum of natural numbers from 1 to n (n-is entered from the keyboard)

316
Program z1; var a, i, n, sum: integer; Begin sum: = 0 read(n); for i: = 1 to n begin read (a); sum: = sum+a; end; writeln(sum); End.
371
Answer add
Hudson Clifton

Other questions in the section - informatics
Zeamkob
Napissat the program easy in pascal with all values
2020-10-26 10:00:32
Paepolgog
I GIVE MANY points! Using the operator of the choice, make the program which
2020-10-26 10:00:32
Mohelm
To make the program in PascalABC the Day of the programmer is traditionally celebrated
2020-10-26 10:00:32
Landagrinn
The program in pascalABCDany two points in the flat rectangular system of coordinates. Napishite
2020-10-26 10:00:32
Netakakub
it is allowed to remove three-digit number on ekrvn its first and last figure
2020-10-26 10:00:32