Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- main()
- {int a, b, P, A;
- cin>>a>>b;
- if (a>0&&b>0)
- { P=2*a+2*b;
- A=a*b;
- }
- cout<<P<<" "<<A; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement