Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main()
- {
- double a,b;
- double area,perimeter;
- //cout<<"a = ";
- cin>>a;
- //cout<<"b = ";
- cin>>b;
- area = a*b;
- perimeter = 2*(a+b);
- cout<<fixed<<setprecision(2)<<area<<" "<<perimeter<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment