Computer Science, asked by shanobhat, 5 months ago

Q2. Write a QBASIC program to display sum of all even numbers from 1 to 20
using DO WHILE LOOP.


Q3. Write a QBASIC program to find perimeter of 10 squares using FOR NEXT
loop. The loop shall end if the side of the square entered by the user is negative.

Please help solve these two questions

Answers

Answered by Anonymous
1

Answer:

CLS

M=2

SUM=0

DO WHILE M<=20

Sum=Sum+M

M=M+2

LOOP

PRINT "The sum of all even numbers between 1 and 20 is :"; sum

Explanation:

If it helps plzz mark me a brainlist

Similar questions