To print the sum of first 10 even numbers in qbasic
Answers
Answered by
11
Answer:
CLS
s = 0
FOR i = 0 TO 10
STEP 2
s = s + i
NEXT i
PRINT "The sum of the numbers is "; s
END
SHARE : TWIT
Hope it's help you
Please Mark as brain list
Answered by
1
even =2,4,6,8
sum = 2+4+6+8
print(sum)
Similar questions