//printf("\'He\'llo\n");
/*
#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("Hello,\nWorld!");
return 0;
}
*******자료형******************
선언 입출력
정수 int %d
실수 float %f
문자 char %c
******************************
integer -> int
floating point -> float
character -> char (차 or 캐릭터)
*******************
정수를 담을 수 있는 변수 a 를 만들어
-> 정수 변수 a 선언
int a;
*/
/*
#include <stdio.h>
int main()
{
int a; //
//printf("a"); (x) // a라는 글자를 출력해
printf("%d",a); //정수 하나 출력 , a에 들어있는거
return 0;
}
*/
//실수 변수 b 선언;
/*
#include <stdio.h>
int main()
{
char d = 'a'; //('a'가 들어있는) 문자 변수 d 선언할게
float b=7.0; // (7.0이 들어있는) 실수 변수 b 선언할게
printf("%f\n",b); // 변수 b에 들어있는 실수 출력해줘
printf("%c\n",d); // 변수 d에 들어있는 문자 출력해줘
return 0;
}
int로 선언한 변수 : -2147483648 ~ 2147483647
#include <stdio.h>
int main()
{
// 6이 들어있는 정수 변수 browl 선언하줘
// 변수 browl에 들어있는 정수 출력해줘
int browl=6;
printf("%d\n",browl);
scanf("%d",&browl);
printf("%d",browl);
return 0;
}
1. 문자 변수 선언
2. 문자 변수 입력받기
3. 문자 변수 출력하기
#include <stdio.h>
int main()
{
char browl='h';
scanf("%c",&browl);
printf("%c",browl);
return 0;
}
*/