This only works with positive numbers. No negative numbers or negative comments! Scratch cannot detect the backspace key, secretly or not, so the backslash(right underneath it) serves as the backspace key. I don't know why, but the calculator starts acting weirdly when you try to add too many digits, so I put a limit on it.
Updates- May 26, 2024: Created May 27, 2024: Added Decimal June 10, 2024: Added Keyboard Functionality June 12, 2024: Finished math quiz based on this code. Here it is: https://scratch.mit.edu/projects/1032652964/ C- Dec 24, 2024: Changed the = on the keyboard to the enter key using this project: https://scratch.mit.edu/projects/1052883407/