Untitled
Anonymous
plain_text
05/05/2021 10:50 AM
372 B
15
Indexable
#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;
}Editor is loading...