Sum and Difference of Two Numbers

  • + 1 comment

    why this code is not give a proper answer. int a,b; float c,d; scanf("%d%d",&a,&b); scanf("%f%f",&c,&d); printf("%d %d\n",a+b,a-b); printf("%f %f",c+d,c-d); return 0;}