I am making a basic calculator to add, subtract, multiply, and divide.

Addition works, but not multiplication. When I attempt to multiply, I get the "You did not run the program correctly" response:

$ ./calculator 4 + 5
9
$ ./calculator 4 * 5
You did not run the program correctly
Example: calculator 4 + 5

I've searched around on google, where I found the \\* code, but still doesn't work.

So, I started using Python because we've started coding in it at university and now we have second homework to do.
I did the bigger piece of the code, however I'm stuck in making a condition.

The full task is this:

Code:
Create a calculator which will add up, multiply, divide or subtract the two numbers that user enters.
When calculator finishes the process it must ask user if he/she wants t

I am currently in the process of making a calculator for Android (I am not using any tutorials) and am running into an issue.

A fun, addictive and a very simple game.

HOW TO PLAY:
-At first, the game chooses a random number (the target).
-You will start with the number 0 (the result).
-You need to add or subtract the random number that will appear on the top of the screen to make your number (the result) equal to the target.

A fun, addictive and a very simple game.

HOW TO PLAY:
-At first, the game chooses a random number (the target).
-You will start with the number 0 (the result).
-You need to add or subtract the random number that will appear on the top of the screen to make your number (the result) equal to the target.

A fun, addictive and a very simple game.

HOW TO PLAY:
-At first, the game chooses a random number (the target).
-You will start with the number 0 (the result).
-You need to add or subtract the random number that will appear on the top of the screen to make your number (the result) equal to the target.

So I'm having a little trouble with this code.

Hi Guys,

I am relatively new to scripting at the moment and am struggling to get the following function to work. For some reason it does not recognise the arithmatic symbol when i select option1. Any help would be greatly appreciated.

Code:

menu ()
{
echo "=============="
echo "Calculator"
echo "=============="
echo "1. Divide"
echo "2.

i am trying to write a script code in unix that will display following menu to user:
(A) Add
(B) Subtract
(C) Multiply
(D) Divide
(E) Modulus
(F) Exponentiation
(G) Exit
Then ask user for choice (A-F). After taking users choice ask user for two numbers and
perform chosen operation on those two numbers.