To Find Area of Four Walls
CLS
INPUT "Enter length"; l
INPUT "Enter breadth"; b
INPUT "Enter height"; h
A = 2 * h * (l + b)
PRINT "Area of four walls="; A
END
To Find Area of Square
CLS
INPUT "Enter length"; l
A = l ^ 2
PRINT "Area of square="; A
END
To Find Area of Triangle
CLS
INPUT "Enter base"; b
INPUT "Enter height"; h
A = 1 / 2 * b * h
PRINT "Area of triangle="; A
END
No comments:
Post a Comment