commit 2493c2e634c8af4e3f7f620ddb106072ce529295 Author: Peter Petrek Date: Thu Oct 7 16:43:50 2021 +0200 test diff --git a/cv1/program b/cv1/program new file mode 100755 index 0000000..e7206f8 Binary files /dev/null and b/cv1/program differ diff --git a/cv1/program.c b/cv1/program.c new file mode 100644 index 0000000..e606739 --- /dev/null +++ b/cv1/program.c @@ -0,0 +1,27 @@ +#include +#include +#include +#include +#include +#include + +#define size 100 + +struct pizza { + char meno[size]; + float price; +}; + +int main() { + + struct pizza listok[size]; + char input[100]= {0}; + char keyword[size] = {0}; + + printf("Zadaj hladanu surovinu:"); + + fgets(keyword, sizeof(keyword), stdin); + + printf("%s", keyword); + +} \ No newline at end of file