Initialization
This commit is contained in:
parent
be9051addf
commit
684b4d8b81
@ -12,9 +12,7 @@ int main() {
|
|||||||
double result = 0.0;
|
double result = 0.0;
|
||||||
|
|
||||||
while (count < SIZE) {
|
while (count < SIZE) {
|
||||||
printf("+");
|
if (scanf("%lf", &input) != 1) {
|
||||||
if (scanf("%lf", &input) != 1 && input != '\n') {
|
|
||||||
printf("-");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user