0
Estoy haciendo una calculadora
Estoy haciendo una calculadora ,pero no se como hacer que cuando diga que sum sume y cuando yo diga resta reste son Hacer la otra claramente??
1 Resposta
+ 2
What have you already tried? Any code you can post?
If it were myself, I would create separate functions for each function of your calculator. Then you can easily make a prompt that allows you to select which you're wanting to do. This is assuming you're making a console based calculator.
If you're making a visual calculator application, then it's as easy as associating the function to that particular button.
Hope that helps.