プレイ日記
aaron pikamonx
Can somebody tell me how to create a simple calculator? im new so dont hate.
1そうだね
プレイ済み
返信[1]
親投稿
Ender Enderguy_58
It's really simple + and - only but you can take it as an example. You could also make it so that you can exit anytime to the snake os menu. You just need to add * and / .
0そうだね
プレイ済み
返信[2]
親投稿
dfrost 4311df
You can make a BASIC calculator with 9 lines o' code
0そうだね
プレイ済み
返信[3]
親投稿
dfrost 4311df
like this...: @A INPUT"FIRST #";A INPUT"SECOND #";B INPUT"SIGN";A$ IF A$=="-"THEN PRINT A-B IF A$=="×" THEN PRINT A*B IF A$=="+" THEN PRINT A+B IF A$=="÷" THEN PRINT A/B GOTO @A
0そうだね
プレイ済み
返信[4]
親投稿
aaron pikamonx
I already have it completed thx tho
0そうだね
プレイ済み
返信[5]
親投稿
SıмΞоп SimeonW
Hey you should consider a REAL calculator If you go to "Reverse Polish Notation" on wikipedia then it tells you how to convert an expression into a form thats easy to calculate It could easily solve things like "90/4.6*0.1/(3-123)*(7/(4-8.45776))/(2^3-1)/3)"
0そうだね
プレイ済み
返信[6]
親投稿
SıмΞоп SimeonW
I made one in smilebasic a while back
0そうだね
プレイ済み