You are viewing a single comment's thread. Return to all comments →
int main() { int a,b; float c,d; scanf("%d%d",&a,&b); scanf("%f%f",&c,&d); int e=a+c; int f=b+d; printf("%d %d\n",e,f); float g=a-c; float h=b-d; printf("%.1f %.1f",g,h); return 0;
Seems like cookies are disabled on this browser, please enable them to open this website
Sum and Difference of Two Numbers
You are viewing a single comment's thread. Return to all comments →
int main() { int a,b; float c,d; scanf("%d%d",&a,&b); scanf("%f%f",&c,&d); int e=a+c; int f=b+d; printf("%d %d\n",e,f); float g=a-c; float h=b-d; printf("%.1f %.1f",g,h); return 0;