Initialization

This commit is contained in:
Kozar 2024-03-05 11:52:30 +01:00
parent 7a0a97a848
commit 0005449303

View File

@ -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;
} }