program.c
This commit is contained in:
parent
c666c7f6ee
commit
74990de5e1
@ -10,7 +10,7 @@ int main(){
|
|||||||
float z;
|
float z;
|
||||||
char znamienko;
|
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){
|
if(sscanf(vstup, "%f %c %f = %f", &x, znamienko ,&y ,&z)!=4){
|
||||||
printf("CHYBA\n");
|
printf("CHYBA\n");
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user