Wednesday, October 16, 2019

35. Qbasic Program convert NC (NEPALI currency) into IC (Indian Currency)


35.      Write a program to convert NC (NEPALI currency) into IC (Indian Currency) using DECLARE SUB.

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

6 comments: