QBasic Programming

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

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

USING SUB PROCEDURE

DECLARE SUB CONVERT (NC)
CLS
INPUT “ENTER VALUE IN NEPALESE RUPEES”; NC
CALL CONVERT (NC)
END

SUB CONVERT (NC)
IC = NC / 1.6
PRINT “INDIAN CURRENCY VALUE=”; IC
END SUB

USING FUNCTION PROCEDURE

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

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

to accept temperature in Celcius from user and convert into the Farenheit (Prev Lesson)
(Next Lesson) to accept currency value in Indian Currency 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 !!