fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a,b;
  6. a=10,b=15;
  7. printf("%d+%d=%d\n",a,b,a+b);
  8.  
  9. double c,d;
  10. int e,f;
  11. char g;
  12. c=0.5,d=10.5;
  13. e=215;
  14. f=e+c+d;
  15. g='A';
  16. printf("%f+%f=%f\n",c,d,c+d);
  17. printf("%f+%d=%d\n",c+d,e,f);
  18. printf("g=%c\n",g);
  19.  
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0.01s 5308KB
stdin
Standard input is empty
stdout
10+15=25
0.500000+10.500000=11.000000
11.000000+215=226
g=A