#include"stdafx.h"
#include<iostream>
usingnamespace std;
void main ()
{
float length,breath,aor,perimeter,circumference,radius,aoc;
cout<<"Enter the length of rectangular"<<endl;
cin>> length;
cout<<"Enter the breath of rectangle"<<endl;
cin>>breath;
cout<<"Enter the radius of circle"<<endl;
cin>> radius;
aor=length*breath;
perimeter=2*(length+breath);
circumference=2*3.14*radius;
aoc=3.14*radius*radius;
cout<<"The area of rectangle is "<<aor<<endl;
cout<<"The perimeter of rectangle is "<<perimeter<<endl;
cout<<"The area of a circle is "<<aoc<<endl;
cout<<"circumference of a circle is "<<circumference<<endl;
system("pause");
}
No comments:
Post a Comment