#include <iostream>
using namespace std ;
int main ( )
{
int l , b , a , p ;
cout <<" Enter the length " ;
cin >> l ;
cout <<" Enter the breadth " ;
cin >> b ;
a = l * b ;
p = 2 * ( l + b ) ;
cout <<" Area of rectangle is " << a << endl ;
cout <<" Parameter of rectangle is " << p << endl ;
if ( a > p )
{
cout <<" \n Area of the rectangle is greater then its Parameter " ;
}
else
{
cout <<" \n Parameter of rectangle is greater then its Area " ;
}
return 0 ;
}
No comments:
Post a Comment
Must drop your comments about post.