From d50c831796ae4532b12da12f1a668fa0b98ac810 Mon Sep 17 00:00:00 2001 From: Viktor Daniv Date: Mon, 14 Oct 2024 12:27:22 +0000 Subject: [PATCH] Update cv3/program.c --- cv3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv3/program.c b/cv3/program.c index 96fe5ea..0e1c377 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -92,7 +92,7 @@ int main() { char *end; double value = strtod(input, &end); - if (end != input && *end == '\n') { + if (end != input && (*end == '\n' || *end == ' ')) { // Це дійсне число if (!push(&calc, value)) { return 1; // Стек переповнений