29.
Write a
program to create a procedure using SUB...END SUB to input the value of length,
breadth and height of a box. The program should calculate the area and volume
of the box.
DECLARE FUNCTION TSAREA (L, B, H)
DECLARE FUNCTION VOLUME (L, B, H)
CLS
INPUT “ENTER LENGTH”; L
INPUT “ENTER BREADTH”; B
INPUT “ENTER HEIGHT”; H
PRINT “TOTAL SURFACE AREA OF CUBOID ”; TSAREA(L, B, H)
PRINT “VOLUME OF CUBOID ”; VOLUME(L, B, H)
END
FUNCTION TSAREA (L, B, H)
TSAREA = 2 * (L * B + B * H + H * L)
END FUNCTION
FUNCTION VOLUME (L, B, H)
VOLUME = L * B * H
END FUNCTION
OK Voli thanks for the post and the comments about the how you are are doing this to me as I have 675 you on in a my way and it you ♥️ have to be a little bit more of the same thing about that and company that I can have a lot of money on and then you can get it for me
ReplyDeletewhy cant we copy paste broo
ReplyDeleteya
DeleteIsn't it sub End sub question but why is it solved in Function end function [ any inquires Search me on youtube zexon fx]
ReplyDelete