fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. double b,c;
  6. scanf("%lf %lf",&b,&c);
  7. printf("%.1f + %.1f = %d\n", b, c, (int)(b+c));
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 2296KB
stdin
4.5 5
stdout
4.5 + 5.0 = 9