Notes v3

Search

Search IconIcon to open search

Iterations

Last updated Sep 12, 2023 Edit Source

# Exercise 1

Print the integers from 1 to 100

1
2
3
4
5
BEGIN
FOR i = 1 TO 100:
	OUTPUT(i)
NEXT
END
1
2
for i in range(100):
	print(i)

# Exercise 2

You have been contracted to write a program that will accept from the user the rainfall (in Millimeters) for each day of the week and then show total and average rainfall for that week.

1
2
3
4
5
6
7
BEGIN





END