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; -} -