Nice and simple,I like it! :)/> Just a few things I'd recommend:
- Use tables,it's alot better than having a lot of "else if"s. It might seem complicated at first but they're really useful! Especially for this type of program.
- Add key support: It would be nice if this was compatible with normal computers(which don't require gold to craft in survival). Because you have no colors,all you need to do is add support for using keys as an alternative to the mouse.
- Make it larger: Pocket computers are small,but not that small! It would be nice if the calculator was a bit larger or if it was more centered,it's a lot easier to use that way!
- Use indenting: Indenting makes code easier to read for you and other people. Also,if you aren't already,navigate to your ComputerCraft folder(in %appdata%) and use a program like
Notepad++,it's a lot easier to code that way instead of using the in-game editor.
Also, one more thing,
pastebin get 0wkqTE1A calc
then,
edit startup once editing startup type : shell.run("calc") almost done! save the program, exit, then reboot your pocket computer (Hold CTRL+R)
Why put it as a startup? Last time I checked Windows wasn't a calculator program :P/>.
TIP: If you really want to use it as a startup,just do this,you don't need to create a new program:
pastebin get 0wkqTE1A startup