First commit

This commit is contained in:
Melon 2022-07-16 13:02:14 +01:00
commit 7a4c2b37f6
Signed by: melon
GPG Key ID: B0ADD5395BCDAAB6
3 changed files with 8 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
small-timer

4
Makefile Normal file
View File

@ -0,0 +1,4 @@
.PHONY: build
build:
gcc -o small-timer main.c

3
main.c Normal file
View File

@ -0,0 +1,3 @@
#include <stdio.h>
#include <unistd.h>
void main() {int a,b;scanf("%d",&a);scanf("%d",&b);while(a>0||b>0){printf("%dm %ds\n",a,b);if(b<1)a--;b=(b+59)%60;sleep(1);}}