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