#include <stdio.h>
int main() {
int a;
a = 10;
int b = 20; // int는 정수
printf("%d %d %d\n", a, b, 999); // \n은 줄 바꾸기
const int asdf = 1234; // const는 안 바뀌는 수
float c = 0.142857; // %c는 문자(한글자)
printf("%.9f\n", c); // %f는 실수
printf("%f\n", c);
printf("%.5f %d %d %d\n", c, a, b,999);
char d = 'A';
printf("%c ㅁㄴㅇㄹ\n", d);
char e[30] = "이끼낀조약돌반블록";
printf("%s\n", e);
char f[1000];
scanf("%s", f); // 입력받기
printf("%s", f);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: