Write a program to enter the length and breadth of a rectangle .
Find the area, perimeter and diagonal of the rectangle.
(Using inputStreamReader).
(Hint: Diagonal=√(l^2+b^2 ) )
Answers
Answered by
0
Answer:
/*
C++ program to find the area of a rectangle
*/
#include <iostream>
using namespace std;
int main()
{
float l, w, a;
cout << "Enter the length & width of the rectangle::\n";
cin >> l >> w;
/* Calculate area of rectangle */
a = l * w;
/* Print output */
cout << "\nArea of rectangle = " << a << " units";
return 0;
}
pls mark brainliest
Answered by
0
Explanation:
mark my question as brainliest please.........
Attachments:
Similar questions
English,
4 months ago
Chemistry,
4 months ago
English,
4 months ago
Political Science,
8 months ago
India Languages,
8 months ago
Biology,
1 year ago