program.c
This commit is contained in:
parent
7ba9b3ef0b
commit
c666c7f6ee
@ -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