Computer Science, asked by subedidivya488, 7 months ago

WAP to display the sum of the numbers 1 to 100. in qbasics
plz don't scam

Answers

Answered by yesiamin6
0

Answer:

sum=0;

for i in range(0,101):

sum=sum+i;

print(sum)

Explanation:

This is the program written in PYTHON LANGUAGE

And it is more easy when we compare to other programming language

NOTE: THE ABOVE LOGIC IS SAME IN ALL LANGUAGE'S CODE

HOPE IT HELPS YOU

DO FOLLOW FOR MORE PROGRAMS

Similar questions