Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a, b, P, S;
- scanf ("%d%d" , &a, &b);
- if ( a>0 && b>0){
- P = (a+b)*2;
- S = a*b;
- printf ("%d %d", P,S);
- }
- else{
- printf ("0");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement