We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Sum and Difference of Two Numbers
Sum and Difference of Two Numbers
Sort by
recency
|
614 Discussions
|
Please Login in order to post a comment
include
int main() { int a,b; float c,d; scanf("%d%d",&a,&b); scanf("%f %f",&c,&d); printf("%d %d",a+b,a-b); printf("\n"); printf("%0.1f %0.1f",c+d,c-d);
}
include
int main() { int a, b; float x, y; scanf("%d %d", &a, &b); scanf("%f %f", &x, &y); printf("%d %d\n", a + b, a - b); printf("%.1f %.1f\n", x + y, x - y); return 0; }
}
include
int main() {
}