This commit is contained in:
2023-12-18 14:54:52 +01:00
parent 188d12092d
commit 49fa3f3857
10 changed files with 137 additions and 31 deletions
+21
View File
@@ -0,0 +1,21 @@
//
// Created by bruno on 12/11/23.
//
#include "do_while_znak.h"
#include "stdio.h"
int do_while_znak(){
int c;
int pocet = 0;
const int koniec = 'k';
do {
c = getchar();
putchar(c);
pocet++;
} while (c != koniec);
printf("\nVydržal si %d znakov pred tým, ako si napísal %c (vrátane) .\n", pocet, koniec);
return 0;
}