/*
#include <stdio.h>
int main()
{
printf("shifohelfkjsd");
return 0;
}
주석 - 메모
*/
/*
#include <stdio.h>
int main()
{
printf("Hello");
return 0;
}
/ 슬래시
\ 백슬래시
#include <stdio.h>
int main()
{
printf("\"H\'ello Wo\nrld");
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>
int main()
{
printf("\"C:\\Download\\hello.cpp\"");
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
printf("special characters\n[\\n,\\\",\\\\] is very important.");
return 0;
}
stdio.h
std standard 표준
io input, output 입출력
h
#include <stdio.h> // stdio.h를 포함해서 컴파일하세요
int main()
{
return 0; // 프로그램을 종료
}
*/
/**
변수 : 데이터(=자료) 를 저장할 수 있는 공간
데이터의 종류 ( 자료형 )
정수 숫자,소수점x 5 10 500 0 -100 -574
실수 숫자, 소수점o 3.14 0.7 -0.001
문자 키보드한알 'a' '+' '/'
정수 integer -> int
실수 floating point -> float
문자 character -> char (캐릭터 차)
***************자료형***********
선언 입출력
정수 int %d
실수 float %f
문자 char %c
*******************************
*/
/*
#include <stdio.h>
int main()
{
int a; // 정수 변수 a 선언
printf("정수 한 개를 입력하세요>>");
scanf("%d",&a); // 정수 변수 a 입력
printf("당신이 입력하신 숫자는 %d입니다.",a); // 정수 변수 a 출력
return 0;
}
*/
/*
#include <stdio.h>
float main()
{
float b;
printf("write floating point>>>>>>>>>>>>>");
scanf("%f",&b);
printf("you wrote %f!!",b);
return 0;
}
*/