program.c
This commit is contained in:
parent
74990de5e1
commit
9d13acd7ca
BIN
du4/program
Executable file
BIN
du4/program
Executable file
Binary file not shown.
@ -11,7 +11,7 @@ int main(){
|
|||||||
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