Qbasic program to display the natural number from 0 to 100
Answers
Answered by
1
Answer:
The steps are as follows.
Initialize the sum to 0.
Then in a loop add the natural numbers starting from 1 until 100 to the sum.
I will write the program here.
sum=0
for I=1 to 100
sum=sum+I
Next I
Print Sum
Explanation:
plz mark me brainliest
Similar questions