-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
시간을 잴 뿐인 타이머 (초 단위만 가능)
- Loading branch information
0 parents
commit 7b6a5cb
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |