program.c
This commit is contained in:
parent
c666c7f6ee
commit
74990de5e1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user