Wednesday, October 16, 2019

24. Qbasic program to calculate volume of cylinder


24.      Write a program to declare user defined function using FUNCTION……END FUNCTION to calculate volume of cylinder.

DECLARE FUNCTION VOLUME (R, H)
CLS
INPUT “ENTER RADIUS”; R
INPUT “ENTER HEIGHT”; H
PRINT “VOLUME OF CYLINDER ”; VOLUME(R, H)
END

FUNCTION VOLUME (R, H)
VOLUME = 3.14 * R ^ 2 * H
END FUNCTION

2 comments:

  1. Are u serious don't u have some shame
    Many childrens open this site and u are commening bad things here

    ReplyDelete
  2. Maya love to talk with him about the next day or two if he is not working today and I am going back home with my dad today to help with his new phone so he could get it to work in a little while I can call you back if he works or if you want me too but if you need to do that you need me too much and he can do that with me and I need you too much and he can help you out if

    ReplyDelete