Computer Science, asked by xxdraina27, 6 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
18

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 brainlist

Similar questions