You are viewing a single comment's thread. Return to all comments →
#include<stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); float c, d; scanf("%f %f", &c, &d); printf("%d %d\n", (a+b), (a-b)); printf("%0.1f %0.1f", (c+d), (c-d)); 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 →