Initialization

This commit is contained in:
Kozar 2024-03-07 12:47:17 +01:00
parent be9051addf
commit 684b4d8b81

View File

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