/*
#include <stdio.h>
int main()
{
명령;
return 0;
}
; 세미콜론 명령의 끝에 붙임
안녕하세요. 저는 ㅇㅇㅇ입니다.
*/
/*
#include <stdio.h>
int main()
{
printf("Hello");
return 0;
}
*/
/*
/ 슬래시
\ 백슬래시
\n : 줄바꿈
*/
/*
#include <stdio.h>
int main()
{
printf("Hello World");
return 0;
}*/
/*
#include<stdio.h>
int main()
{
printf("Hello\nWorld");
return 0;
}*/
/*
#include<stdio.h>
int main()
{
printf("\'Hello\'");
return 0;
}*/
/*
#include<stdio.h>
int main()
{
printf("\"Hello World\"");
return 0;
}*/
/*
#include<stdio.h>
int main()
{
printf("\"!@#$%%^&*()\"");
return 0;
}
*/
/*
#include <stdio.h>
// stdio.h라는 파일을 포함해서 컴파일해라!
// std(standard) io(input+output)
int main()
{
printf("\"C:\\Download\\hello.cpp\"");
return 0;
}
*/
/*
변수 : 값(자료)을 담을 수 있는 공간
자료형 ( 데이터의 종류)
정수 숫자 소수점x -> 50 100 -10
실수 숫자 소수점o -> 3.14 50.0
문자 키보드한알 -> 'a' '!' ';'
정수 integer int
실수 floating point float
문자 character char (캐릭터 or 차)
*/
/**
자료형
선언 입출력
정수 int %d
실수 float %f
문자 char %c
%d 10진수 decimal
%o 8진수 octal
%x 16진수 hexadecimal
*/
/*
#include <stdio.h>
int main()
{
int a; // 정수를 담을 수 있는 변수 a 만들기
scanf("%d",&a); // 정수 a 입력
printf("%d",a); // 정수 a 출력
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int s;
scanf("%d",&s);
printf("%d",s);
return 0;
}*/
/*
#include <stdio.h>
int main()
{
char s;
scanf("%c",&s);
printf("%c",s);
return 0;
}
*/