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"); }