기타

코드업 c언어 기초100제 (1~9)

grze0 2021. 4. 4. 00:22

1번(Hello출력)

#include<stdio.h>

int main()
{
	printf("Hello");
	return 0;
}

2번(Hello World출력)

#include<stdio.h>

int main()
{
	printf("Hello World");
	return 0;
}

3번(Hello(줄바꿈)World출력)

#include<stdio.h>

int main()
{
	printf("Hello\nWorld");
	return 0;
}

4번('Hello'출력)

#include<stdio.h>

int main()
{
	printf("\'Hello\'");
	return 0;
} 

5번("Hello World"출력)

#include<stdio.h>

int main()
{
	printf("\"Hello World\"");
	return 0;
}

6번(!@#$%^&*())출력

#include<stdio.h>

int main()
{
	printf("\"!@#$%^&*()\"");
	return 0; 
}

7번("C:\Download\hello.cpp\")출력

#include<stdio.h>

int main()
{
	printf("\"C:\\Download\\hello.cpp\"");
	return 0;
}

8번 유니코드 문자 출력

#include<stdio.h>

int main()
{
	printf("\u250C\u252C\u2510\n");
	printf("\u251C\u253C\u2524\n");
	printf("\u2514\u2534\u2518\n");
	return 0;
}

1009번은 없음!

 

 

10번

#include<stdio.h>

int main()
{
	int n;
	scanf("%d", &n);
	printf("%d",n);
	
	return 0;
}

'기타' 카테고리의 다른 글

Pointer based Address list(C)  (0) 2026.02.18
코드업 C언어 기초 100제(41~50)  (0) 2021.04.04
코드업 C언어 기초100제(31~40)  (0) 2021.04.04
코드업 C언어 기초 100제(21~30)  (0) 2021.04.04
코드업 C언어 기초100제(11~20)  (0) 2021.04.04