34.
Write a program to
convert USD(dollar) into NC (NEPALI currency) using DECLARE FUNCTION.
DECLARE FUNCTION CONVERT (D)
CLS
INPUT “ENTER CURRENCY VALUE IN DOLLAR”; D
PRINT “NEPALESE CURRENCY VALUE=”; CONVERT (D)
END
FUNCTION CONVERT (D)
NC = D * 110
CONVERT = NC
END FUNCTION
In function procedure, while writing any program pls return the value because it is the quality/feature of function procedure. if we do not need to return value then it would have said in sub procedure also.
ReplyDelete