Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
277 B
1
Indexable
Never
#include <stdio.h>
 
int main()   {
    float a, b;
    scanf("%d %d", &a, &b);
    printf("%d %d", a,b);
    if (a>0 && b>0)  {
	    float c = ( a + b) *2;
	    float d = a *b;
	    printf("%f %f", c, d);
	    }
	    else {
	    	printf("0");
		}
		return 0;
	}