I just got help and tutorials working!
If you have justbasic, (Here, if you don't), try this code for a simple calculator I made!
'Calculator made by 16skittles 'this sets up a goto feature that resets the program [startloop] 'inputs and the prompts input "type the 1st number "; first input "type the function (add=1, subtract=2, multiply=3, divide=4) "; funct input "type the 2nd number "; second 'now for the code that actually interprets the numbers and fuctions if funct = 1 then print first + second end if if funct = 2 then print first - second end if if funct = 3 then print first * second end if if funct = 4 then print first / second end if 'this just asks if you want to quit or continue input "Reset or quit? (reset=1 quit=2)"; choice if choice = 1 then [startloop] end
without comments:
[startloop] input "type the 1st number "; first input "type the function (add=1, subtract=2, multiply=3, divide=4) "; funct input "type the 2nd number "; second if funct = 1 then print first + second end if if funct = 2 then print first - second end if if funct = 3 then print first * second end if if funct = 4 then print first / second end if input "Reset or quit? (reset=1 quit=2)"; choice if choice = 1 then [startloop] end
either one should work.
Add your own!
Offline
bumpeth. nobody else programs just basic?
Offline