how to find area of rectangle in c++
Source code
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{//find the area of rectangle
int l,b;
cout<<"Enter the value of 'l'-";
cin>>l;
cout<<"Enter the value of 'b'-";
cin>>b;
cout<<"The area of rectangle is=>"<<l*b;
getch();
cout<<"\nmake by:- " <<endl;
cout<<"S K E L T O N "<<endl;
cout<<"P R O G R A M M E R "<<endl;
return 0;
}
Comments
Post a Comment