QBASIC PROGRAM TO CONVERT NEPALESE CURRENCY INTO INDIAN CURRENCY
WE WILL FOLLOW,THE CONVERSION RULE I.E. 1 IC = 1.6 NC THUS 1 NC = 1/1.6 IC THUS X NC = X/1.6 IC
CLS
INPUT “ENTER NEPALESE CURRENCY ” ; P
C=P/1.6
PRINT “INDIAN CURRENCY "; C
END
USING SUB
DECLARE SUB NI(P)
CLS
INPUT “ENTER NEPALESE CURRENCY ” ; P
CALL NI(P)
END
SUB NI(P)
C=P/1.6
PRINT “INDIAN CURRENCY "; C
END SUB
0 Comments