Computer Science, asked by thapaashishkum3996, 4 months ago

Write a c++ program to find the area of rectangle

Answers

Answered by yesiamin6
1

Answer:

#include<iostream.h >

#include<conio.h>

int main()

{

int len, bre, ar;

cout<<"ent the values of length and breadth\n" ;

cin>>len>>bre;

ar=len*bre;

cout<<"area of rectangle =" <<ar;

getch();

}

Explanation:

HOPE IT HELPS YOU

DO FOLLOW FOR MORE PROGRAMS

MARK AS BRAINLIEST

Answered by anindyaadhikari13
1

Question:-

  • Write a c++ program to find the area of rectangle.

Program:-

#include <iostream.h>

#include <conio.h>

int main()

{

clrscr();

double l, b, a;

cout <<"Enter length: ";

cin >> l;

cout <<"Enter breadth: ";

cin >> b;

a=l*b;

cout <<"Area is: "<<a;

getch();

return 0;

}

Similar questions