22-type-conver.c 173 B

123456789101112
  1. #include <stdio.h>
  2. int main() {
  3. int a = 10;
  4. double b = 3.14;
  5. double result = (double)a + b;
  6. printf("Result: %.2f\n", result);
  7. return 0;
  8. }