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