Aktualizovat „du4/program.c“
This commit is contained in:
parent
fe9c49688e
commit
befb7c767c
@ -52,8 +52,6 @@ double compare_percent(double a, double b, double eps)
|
||||
int main()
|
||||
{
|
||||
char str[100][100];
|
||||
char b;
|
||||
int quan =1;
|
||||
for(int i =0;fgets(str[i],100,stdin);i++){
|
||||
if(str[i][0]=='\n'){
|
||||
break;
|
||||
@ -65,7 +63,7 @@ int main()
|
||||
sscanf(new_str,"%lf%c%lf%s%lf",&first,&c,&second,ravno,&res);
|
||||
|
||||
|
||||
if(c=='E'||first==-5||second==-5||res==-5||(c!=43&&c!=42&&c!=45&&c!=47||(strlen(ravno)==1&&ravno[0]=='=')){
|
||||
if(c=='E'||first==-5||second==-5||res==-5||(c!=43&&c!=42&&c!=45&&c!=47||(strlen(ravno)==1&&ravno[0]=='='))){
|
||||
printf("CHYBA\n");
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user