WAP in QBASIC to calculate the sum of all the even numbers within 1 to 100
Answers
Answered by
0
Answer:
CLS
CALL SERIES
END
SUB SERIES
FOR I = 1 TO 100
S = S + 1
NEXT
PRINT “SUM OF ALL NATURAL NUMBERS FROM 1 TO 100=”; S
END
Similar questions
Math,
2 months ago
Math,
2 months ago
Political Science,
4 months ago
English,
4 months ago
Math,
11 months ago
Social Sciences,
11 months ago
English,
11 months ago