program.c

This commit is contained in:
Patrik Seman 2023-03-16 15:48:24 +01:00
parent c666c7f6ee
commit 74990de5e1

View File

@ -10,7 +10,7 @@ int main(){
float z;
char znamienko;
while(fgets(vstup, 100, stdin)!=NULL || *vstup!='\n'){
while(fgets(vstup, 100, stdin)!=NULL && *vstup!='\n'){
if(sscanf(vstup, "%f %c %f = %f", &x, znamienko ,&y ,&z)!=4){
printf("CHYBA\n");
continue;