Computer Science, asked by vijay4574, 11 months ago

write a program to find area of rectangle

Answers

Answered by marpitasrao
5

#include<iostream.h>

#include<conio.h>

void main()

{ int l,b;

cout<<"Enter length and breadth of the rectangle:";

cin>>l>>b;

cout<<"Area of rectangle is:"<<l*b;

getch();

}


vijay4574: yar help kardo sabhi question me
marpitasrao: maine c++ seekha hai yaar.. so jo bhi c++ ke the I answered.. If u have more questions on c++ u can send them to me
Answered by siddhartharao77
3

Sample Program for Area of rectangle:

#include<iostream>

int main()

{

float Length,Breadth;

double Area;

cout << "Enter the length and breadth:" ;

cin >> Length >> Breadth;

Area = Length * Breadth;

cout << " Area of the rectangle : " << Area ;

return 0;

}


Output:

Enter the length and breadth : 10 20

Area of the rectangle : 200.


Hope it helps!

Attachments:
Similar questions