A program to find the volume and area of a box. (Qbasic Code)

A program to find the volume and area of a box. (Qbasic Code)
CLS
INPUT "Enter the length of the box"; l
INPUT "Enter the breadth of the box"; b
INPUT "Enter the height of the box"; h
v = l * b * h
a = 2 * (l * b + b * h + h * l)
PRINT "The volume of the box is"; v
PRINT "The area of the box is"; a
END

Share :

Twitter
Back To Top

facebook main

counter

Powered by Blogger.