Computer Science, asked by abdulhafidh345, 8 months ago

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 elixirplayz5
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 shubhda86
0

Explanation:

mark my question as brainliest please.........

Attachments:
Similar questions