You are viewing a single comment's thread. Return to all comments →
My Solutuion
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { int a,b,sum1,sub1; float c , d , sum2 , sub2 ; // int input scanf("%d",&a); scanf("%d",&b); // float input scanf("%f",&c); scanf("%f",&d); // int add. and sub. sum1 = a + b; sub1 = a - b; // float add. and sub. sum2 = c + d; sub2 = c - d; // int output printf("%d",sum1); printf(" %d",sub1); // float output printf("\n%.1f",sum2); printf(" %.1f",sub2); return 0;
}
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 →
My Solutuion
}