Computer Science, asked by pallavithegreat, 9 months ago

write a program for the
following on qbasic :

To print first ten even numbers

To print series of 20 to 10 in reverse oder

To print the series:1,4,9,16,25...upto ten terms

please answer fast I have my exam after 10 hours

Answers

Answered by Rajvaibhav87365
1

Answer:

To print first ten even number:

CLS

CLS FOR A=2 TO 20 STEP 2

PRINT A

NEXT A

END

To print series of 20 TO10 in reverse order:

CLS

FOR A =20 TO 10 STEP - 1

PRINT A

NEXT A

END

To print series... Upto 10 terms

CLS

CLSFOR A =1 TO 10

PRINT A*A

NEXT A

END

Similar questions