write a program C++ to calculate and print the area and perimeter of a rectangle whose length is 24cm and breadth is 32cm ??
Explain it
Answers
Answered by
0
Answer:
//Rectangle program
Explanation:
#include<iostream>
using namespace std;
int main(void)
{
double length,width;
length=24;
width=32;
cout<<"Area of rectangle is "<<length*width;
cout<<"Parameter of rectangle is "<<2*length*width;
return 0;
}
Similar questions
Hindi,
9 days ago
Biology,
9 days ago
Computer Science,
9 days ago
English,
20 days ago
Math,
20 days ago
Social Sciences,
8 months ago
English,
8 months ago