fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a;
  5. float b, c;
  6. scanf("%d%f", &a, &b);
  7. c=a+b;
  8. printf("c=%.1f \n", c);
  9. printf("Сума чисел %d та %.1f = %.1f", a,b,c);
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5296KB
stdin
4
5.2
stdout
c=9.2 
Сума чисел 4 та 5.2 = 9.2