From d22bba34fb175a4e403273be8bf0ebde11ee2e50 Mon Sep 17 00:00:00 2001 From: Oleksandr Vyshniakov Date: Tue, 23 Sep 2025 21:23:05 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20pr?= =?UTF-8?q?ogram.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- program.c | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 program.c diff --git a/program.c b/program.c deleted file mode 100644 index 53a2c8b..0000000 --- a/program.c +++ /dev/null @@ -1,25 +0,0 @@ -#include - -int najti (char* pole, int size, char znak) { - for (int i = 0; i < size; i++) { - if (pole[i] < size) { - return i; - } - } - return -1; -} - -int main() { - char text[] = "Zdarova Oleksandr!"; - char hochunajti = 's'; - int pozition = najti(text, sizeof(text), hochunajti); - - if (pozition != -1) { - printf("Znak '%c' na %d", hochunajti, pozition); - } else { - printf("nebyla najdena poshol nahui"); - } - - return 0; -} -