You are viewing a single comment's thread. Return to all comments →
int main() {
int x; int y; scanf("%d %d", &x, &y); printf("%d %d\n", (x+y), (x-y)); float a; float b; scanf("%f %f", &a, &b); printf("%.1f %.1f", (a+b), (a-b)); return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Sum and Difference of Two Numbers
You are viewing a single comment's thread. Return to all comments →
include
int main() {
}