To find the cost of painting the four walls of a room. [A = 2*(l + b) * h] (Qbasic)


To find the cost of painting the four walls of a room. [A = 2*(l + b) * h] (Qbasic Code)



CLS

INPUT "Enter the lenght of the room"; l

INPUT "Enter the breadth of the room"; b

INPUT "Enter the height of the room"; h

INPUT "Enter the rate of painting per square"; r

a = 2 * (l + b) * h

c = a * r

PRINT "The cost of painting the four walls of the room is"; c

END

Share :

Facebook Twitter
Back To Top

facebook

Powered by Blogger.