QBasic Programming

to accept currency value in Indian Currency and convert into Nepalese Rupees

REM PROGRAM TO CONVERT IC VALUE INTO NC VALUE
CLS
INPUT “ENTER VALUE IN INDIAN VALUE”; IC
NC = IC * 1.6
PRINT “NEPALESE CURRENCY VALUE=”; NC
END

USING SUB PROCEDURE

DECLARE SUB CONVERT (IC)
CLS
INPUT “ENTER VALUE IN INDIAN VALUE”; IC
CALL CONVERT (IC)
END

SUB CONVERT (IC)
NC = IC * 1.6
PRINT “NEPALESE CURRENCY VALUE=”; NC
END SUB

USING FUNCTION PROCEDURE

DECLARE FUNCTION CONVERT (IC)
CLS
INPUT “ENTER VALUE IN INDIAN VALUE”; IC
PRINT “NEPALESE CURRENCY VALUE=”; CONVERT (IC)
END

FUNCTION CONVERT (IC)
NC = IC * 1.6
CONVERT = NC
END FUNCTION

to accept currency value in Nepalese Rupees and convert into Indian Currency (Prev Lesson)
(Next Lesson) to accept currency value in dollar and convert into Nepalese Rupees
Back to QBasic Programming
Notice: compact(): Undefined variable: limits in /home/bhimgautam34/public_html/wp-includes/class-wp-comment-query.php on line 853

Notice: compact(): Undefined variable: groupby in /home/bhimgautam34/public_html/wp-includes/class-wp-comment-query.php on line 853

No Comments

Post a Reply

Course Curriculum

error: Content is protected !!