Go To Index
Practical No. 8a: W.A.P. to convert dollars into rupees, where dollars rate is Rs.158.
10 CLS: Print TAB(28) "Conversion of Dollar into rupees".20 Locate 7, 26: Input "Enter Number of Dollar",D
30 Let Rupees = Dollar*158
40 CLS
50 Print TAB(26) "Number of Dollar"TAB(37)D
60 Print TAB(26) "Rupees"TAB(37)Rupees
70 END
RUN
Practical No. 8b: W.A.P. to convert rupees into dollars, where dollars rate is Rs.158.
10 CLS: Print TAB(28) "Conversion of rupees into Dollar".20 Locate 7, 26: Input "Enter Number of Rupees",R
30 Let Dollar = R/158
40 CLS
50 Print TAB(26) "Number of Rupees"TAB(37)R
60 Print TAB(26) "Dollar"TAB(37)Dollar
70 END
RUN
OR
10 REM CONVERT DOLLARS INTO RUPEES AND RUPEES INTO DOLLARS
20 REM WHERE THE RATE IS 1$ = Rs.60
30 CLS
40 PRINT "TO CONVERT DOLLARS INTO RUPEES"
50 INPUT "ENTER VALUE IN DOLLARS($) =:";D
60 LET R = D * 60
70 PRINT D, "DOLLARS", "="R, "RUPEES"
80 PRINT "TO CONVERT RUPEES INTO DOLLARS"
90 INPUT "ENTER VALUE IN RUPEES(Rs.) =:";R1
100 LET D1 = R1 / 60
110 PRINT R1, "RUPEES", "="D1, "DOLLARS"
120 END
OUTPUT
500 DOLLARS = 30000 RUPEES
30000 RUPEES = 500 DOLLARS
No comments:
Post a Comment