3 questions
I made a postfix calculator with Python, and the result came out weirdThe first line is a formula The second line is the output of the infix converted into a postfixIn the last line, the result value ...
#include <stdio.h>int main(){ int n1 = 0, n2 = 0; char c = 0; int val = 0; printf (Enter an expression: ); scanf_s(%d%c%d, &n1, &c, &n2); switch (c) { case '+': val = n1 + n2; pri...
Even if you enter numbers that do not fall apart by dividing them into 10 and 4, the decimal point does not come out properly. How can I get a decimal point? ㅠ
© 2024 OneMinuteCode. All rights reserved.