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,e,f;
  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("%5.2f+%5.2f=%5.2f\n",c,d,c+d);
  17. printf("%5.2f+%6.2f=%6.2f\n",c+d,e,f);
  18. printf("g=%c\n",g);
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
10+15=25
 0.50+10.50=11.00
11.00+215.00=226.00
g=A