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