school/bomba.c

23 lines
333 B
C
Raw Normal View History

2023-12-18 14:54:52 +01:00
//
// Created by bruno on 12/11/23.
//
#include "bomba.h"
#include "stdio.h"
#include "unistd.h"
2024-01-22 14:41:15 +01:00
int dake_cislo() {
2023-12-18 14:54:52 +01:00
int a;
printf("Zadaj číslo:");
scanf("%d", &a);
2024-01-22 14:41:15 +01:00
do {
2023-12-18 14:54:52 +01:00
printf("%d\n", a);
usleep(1000000);
a--;
} while (a >= 0);
printf("\nAdlerka vybuchla (BOOOOOOOOOOM).\n");
}