Computer Science, asked by pgd01011986, 2 months ago

Section -B
-6.Write c++ programming for the following - Any three)
3x10=30
a) Write a program to calculate the area and perimeter of a rectangle.
b)Write a program to calculate the average of four numbers.
c)Write a program to calculate the square and cube of a number
d)Write a program to calculate the average marks of 5 subjects of a student.​

Answers

Answered by sonali200893
2

Answer:

CLS

INPUT "ENTER THE LENGHT AND BREADTH OF THE RECTANGLE";L,B

PER=(2×L)+(2×B)

AREA=L×B

PRINT"THE AREA =";AREA

PRINT"THE PERIMETER=";PER

END.

Similar questions