From c7b5abcc85602b2f117bdf7fd8a11450e9775893 Mon Sep 17 00:00:00 2001 From: Ivan Leichenko Date: Mon, 14 Oct 2024 14:29:01 +0200 Subject: [PATCH] update cv3 --- cv3/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv3/program.c b/cv3/program.c index 9cf2e87..2a9855f 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -65,6 +65,7 @@ int main(int argc, char const *argv[]) { if(buf[0] == '\n') { + printf("no input\n"); break; } @@ -80,7 +81,7 @@ int main(int argc, char const *argv[]) } for (int i = 0; i < calc_stack.size; i++) { - printf("%2.f ", calc_stack.values[i]); + printf("%.2f ", calc_stack.values[i]); } printf("\n"); }