HomeExam Question Papers - (Class-10, Class-9, Class-8, Class-7, Class-6, Class-5, Class-4Class-3Class-2Class-1, Class-S.K.G., Class-J.K.G., Class-Nursery)

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 x
Back To Top

facebook

Powered by Blogger.