-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTeacher's_day.c
20 lines (18 loc) · 2.61 KB
/
Teacher's_day.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
#include <time.h>
#define clear() printf("\033[H\033[J")
void delay(unsigned int sec) // 특정 시간(초)만큼 기다리는 함수
{
clock_t ticks1 = clock();
clock_t ticks2 = ticks1;
while ((ticks2 / CLOCKS_PER_SEC - ticks1 / CLOCKS_PER_SEC) < (clock_t)sec)
ticks2 = clock();
}
int main()
{ // 출력 버퍼의 크기를 10으로 설정
puts("────────█████─────────────█████\n────████████████───────████████████\n──████▓▓▓▓▓▓▓▓▓▓██───███▓▓▓▓▓▓▓▓▓████\n─███▓▓▓▓▓▓▓▓▓▓▓▓▓██─██▓▓▓▓▓▓▓▓▓▓▓▓▓███\n███▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓███▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓███\n██▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██\n██▓▓▓▓▓▓▓▓▓──────────────────▓▓▓▓▓▓▓▓██\n██▓▓▓▓▓▓▓─██───████─█──█─█████─▓▓▓▓▓▓██\n██▓▓▓▓▓▓▓─██───█──█─█──█─██────▓▓▓▓▓▓██\n███▓▓▓▓▓▓─██───█──█─█──█─█████─▓▓▓▓▓▓██\n███▓▓▓▓▓▓─██───█──█─█──█─██────▓▓▓▓▓▓██\n─███▓▓▓▓▓─████─████─████─█████─▓▓▓▓███\n───███▓▓▓▓▓──────────────────▓▓▓▓▓▓███\n────████▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓████\n─────████▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓████\n───────████▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█████\n──────────████▓▓▓▓▓▓▓▓▓▓▓▓████\n─────────────███▓▓▓▓▓▓▓████\n───────────────███▓▓▓███\n─────────────────██▓██\n──────────────────███\n");
delay(5);
clear();
puts("사랑합니다 !");
return 0;
}