This commit is contained in:
Damián Korpesio 2021-10-19 19:51:42 +02:00
parent 5219c45874
commit 097131e90c

View File

@ -21,11 +21,11 @@ int main() {
while (fgets(line, LINESIZE, stdin)) {
velkost = strlen(line);
if (velkost == 1 && line[velkost - 1] == '\n') {
printf("no input");
printf("no input\n");
break;
}
if (input >= 10){
printf("no input");
printf("no input\n");
break;
}
if (line[0] == '+' || line[0] == '-' || line[0] == '*' || line[0] == '/') {
@ -57,7 +57,9 @@ int main() {
for (i = 0; i < a; i++){
printf("%.2f ", number[i].cislo);
}
printf("\n");
}
return 0;
}