fixnute zaporne hodnoty
This commit is contained in:
parent
2f95f9f843
commit
e893119c97
@ -43,6 +43,8 @@ int main() {
|
|||||||
n_of_signs = 0;
|
n_of_signs = 0;
|
||||||
for (int l=0; l<5;l++) {
|
for (int l=0; l<5;l++) {
|
||||||
if (strchr(equation[i], operators[l]) != NULL) {
|
if (strchr(equation[i], operators[l]) != NULL) {
|
||||||
|
if ((strlen(equation[i]) > 1) && (equation[i][0] == '-'))
|
||||||
|
continue;
|
||||||
n_of_signs++;
|
n_of_signs++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user