Please click below to obtain (download) source program file.
Open that file is QBASIC.
.Download Link is:
download calculator.bas files
This program looks like simple desktop calculator, ya you can't use mouse, though numeric keypads will work well to do calculations. See how is this calculator functions. I have made the coding as simple as possible so that you can follow the code and understand it easily.
If you want do more scientific calculations, you may try yourself at home. It will be fun to do programming, believe me.
Enjoy your programming.
print odd number from 20 to 1 using for ..next loop??? How can??
ReplyDeletetype the following program code:
ReplyDeleteCLS
FOR P = 20 TO 1 STEP -1
IF P MOD 2=1 THEN
PRINT P
END IF
NEXT P
END
can u type
ReplyDeletecls
input b':b
dim a,b as int
for a=20 to b step 2
c=a+b
next a
end