2023-12-04 15:56:21 +01:00
|
|
|
#include "stdio.h"
|
2023-12-18 14:54:52 +01:00
|
|
|
|
2024-01-22 14:41:15 +01:00
|
|
|
int znak() {
|
2023-12-18 14:54:52 +01:00
|
|
|
|
2023-12-04 15:56:21 +01:00
|
|
|
char in;
|
|
|
|
printf("Zadaj znak:");
|
|
|
|
scanf("%c", &in);
|
|
|
|
switch (in) {
|
2024-01-22 14:41:15 +01:00
|
|
|
case 'a':
|
|
|
|
printf("Volba a.\n");
|
|
|
|
case 'b':
|
|
|
|
printf("Volba b.\n");
|
|
|
|
case 'c':
|
|
|
|
printf("Volba c.\n");
|
2023-12-04 15:56:21 +01:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
printf("Nevybral si si a/b/c.\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|