Computer Science, asked by afsheenbasith, 5 months ago

Write a program to display sum of numbers from 50 to 80.
using qbasic.

Answers

Answered by Anonymous
6

Answer:

The following is quick and dirty, but it should do the trick :

10 REM ‘Program to find the sum of of even numbers between 10 and 50’

20 CLS

30 LET s = 10

40 FOR i = 10 TO 50 STEP 2

50 LET s = s + i

60 NEXT i

70 PRINT "The sum of the numbers is "; s

80 END

Hope it helps you.. :)

Pls mark me as BRAINILIEST

Similar questions