Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- algarismo_1 = nil
- algarismo_2 = nil
- resultado = nil
- operacao = nil
- resto = nil
- escolha = nil
- function limpar()
- term.clear()
- term.setCursorPos(1, 1)
- end
- function menu()
- print(" CALCULADORA\n\n")
- print("Escolha a Operacao Desejada\n")
- print("Caso Deseje Somar Digite [+]")
- print("Caso Deseje Subtrair Digite [-]")
- print("Caso Deseje Multiplicar Digite [x] ou [*] ")
- print("Caso Deseje Dividir Digite [/] ")
- escolha = io.read()
- limpar()
- end
- menu()
- function operacao()
- if
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement