? Simple Calculator ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password
This website has been moved, please see this post

Simple Calculator

Submitted
Updated
Author
Lacks
Public Key
REMOVED
Min. Compat.
All
Rating
1 vote
Description A simple calculator I made with the help of Google. This is my first time coding anything. I'm just trying to learn the fundamentals atm. Constructive criticism welcome. Instructions Type the numbers in with the keyboard. Start to exit. Its a bare bones beginner program.
Categories
Keywords
  • Calculator
  • add
  • subtract
  • multiply
  • divide
3 Comment(s) triangle triangle First Week Joined in the very first week of SmileBASIC Source Website Query Denied Hidden Easter Eggs Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Very nice for a first program! The one thing I'd change is making it ask for the first and second numbers instead of digits. The current wording works just fine, but I was worried for a second that I'd have to input my numbers 1 digit at a time. Lacks Lacks Thanks for taking a look. That's a good point. When I showed my wife she was also confused by that. I've noticed something weird where the program will keep the previous numbers you entered, so if you leave the two questions blank it will keep the previous numbers you used. Do you have any idea how I could clear the variables after each function is performed? Apologies if I'm using the wrong terms. triangle triangle First Week Joined in the very first week of SmileBASIC Source Website Query Denied Hidden Easter Eggs Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength I see two solutions to that: you could reset the variables manually after each operation, or you could detect if nothing is entered and prompt the user to try again.