QBASIC PROGRAM TO PRINT VOLUME OF BOX(FUNCTION)
DECLARE FUNCTION VOLUME (L, B, H)
CLS
INPUT"ENTER LENGTH"; L
INPUT"ENTER BREADTH"; B
INPUT"ENTER HEIGHT"; H
PRINT"VOLUME OF BOX"; VOLUME (L, B, H)
END
FUNCTION VOLUME (L, B, H)
V= L* B* H
VOLUME = V
END FUNCTION
CLS
INPUT"ENTER LENGTH"; L
INPUT"ENTER BREADTH"; B
INPUT"ENTER HEIGHT"; H
PRINT"VOLUME OF BOX"; VOLUME (L, B, H)
END
FUNCTION VOLUME (L, B, H)
V= L* B* H
VOLUME = V
END FUNCTION
Comments
Post a Comment