Skip to content

Commit

Permalink
Fixed printing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
valentino7504 committed Jul 13, 2023
1 parent 589a9d5 commit 8888a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edwin-valentino7504/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ int main(void)
if (num2 != 2)
printf("\\%.0f|%.4f = %.4f\n\n", num2, num1, result);
else
printf("\\|%.4f = %.4f\n\n", num1, result);
printf("\\|%.4f = %.4f\n\n\n", num1, result);
else if (check_trig(operator))
printf("%s(%.2f) = %.4f\n", operator, num1, result);
printf("%s(%0.2f) = %.4f\n\n", operator, num1, result);
else
printf("%.4f %s %.4f = %.4f\n\n", num1, operator, num2, result);
free(operator);
Expand Down

0 comments on commit 8888a47

Please sign in to comment.