Computer Science, asked by daisy1976rani, 8 months ago

Qbasic program. Wap to print number, it's square and it's cube from 5 to 10 ​

Answers

Answered by anindyaadhikari13
1

Question:-

  • WAP in QBASIC to print square and cube of number from 5 to 10

Program:-

CLS

PRINT "Squares of numbers between 5-10 are as follows.."

FOR I=5 TO 10 STEP 1

A=I*I

PRINT A+" "

NEXT I

PRINT "Cubes of numbers between 5-10 are as follows.."

FOR I=5 TO 10 STEP 1

A=I*I*I

PRINT A+" "

NEXT I

Similar questions