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