Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
시간을 잴 뿐인 타이머 (초 단위만 가능)
  • Loading branch information
jumpparkdev authored Jan 1, 2022
0 parents commit 7b6a5cb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:4996)
#include <stdio.h>
//#include <stdlib.h>
#include <Windows.h>

int main()
{
int input = 0;
int i = 0;
printf("jTIMER\n");
printf("==*==*==*==*==*==*==*==*==*==*==*==\n");
printf("Enter Time in Seconds: ");
scanf("%d", &input);
printf("%d SECONDS - TIMER START!\n", input);
Sleep(1000);
system("cls");
for (i = 1; i <= &input; i++) {
printf("%d SECONDS LEFT", input - i);
Sleep(1000);
system("cls");
if (i >= input) break;
}
printf("%d SECOND IS OVER!!!", input);
printf("\a");

return 0;
}

0 comments on commit 7b6a5cb

Please sign in to comment.