You are viewing a single comment's thread. Return to all comments →
or int x,y; float m,n; scanf("%d %d \n", &x,&y); scanf("%f %f\n", &m,&n); printf("%d %d\n",x+y,x-y); printf("%.1f %.1f",m+n,m-n);
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 →
or int x,y; float m,n; scanf("%d %d \n", &x,&y); scanf("%f %f\n", &m,&n); printf("%d %d\n",x+y,x-y); printf("%.1f %.1f",m+n,m-n);