1.

Input a number and display its square if its less then 50 else display its cube

Answer»

REM PROGRAM TO DISPLAY SQUARE OF AN INPUT NUMBER

CLS

INPUT “ENTER ANY NUMBER”; N

S = N ^ 2

PRINT “SQUARE OF NUMBER ”; S

END

hope it will help you



Discussion

No Comment Found