fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int i=250;
  6. float a=125.23f;
  7. float b=314.1592e+5;
  8. char c = 'A';
  9. char dd[]="Korea";
  10. printf("10진수i = %d\t 8진수i = %o\n",i,i);
  11. printf("a=%8.2f, b=%e\n", a,b);
  12. printf("c값은 문자로 %c이고 아스키 코드로는 %d이다.\n", c,c);
  13. printf("%-10s, %10s\n\r",dd,dd);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
10진수i = 250	 8진수i = 372
a=  125.23, b=3.141592e+07
c값은 문자로 A이고 아스키 코드로는 65이다.
Korea     ,      Korea