You are viewing a single comment's thread. Return to all comments →
int a,b; float c,d; scanf("%d %d", &a,&b); scanf("%f %f",&c,&d); printf("%d %d\n", a+b, a-b); printf("%.1f %.1f", c+d, c-d); return 0;
1 means one, not i or L
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 a,b; float c,d; scanf("%d %d", &a,&b); scanf("%f %f",&c,&d); printf("%d %d\n", a+b, a-b); printf("%.1f %.1f", c+d, c-d); return 0;
1 means one, not i or L