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
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
Math,
1 month ago
Sociology,
1 month ago
English,
2 months ago
Social Sciences,
2 months ago
Math,
9 months ago