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.

How to add, subtract, multiply and divide 2 different numbers from 2 different form. Pls help me. The code i think is way too simple example: (Result.text = result) (Text1.text = number from form2)(Text2,text = Number from form3). the code i think is like this and this one is not working:

Public Sub Command1_Clicked()
Result.text = Val(Text1.Text) + Val(Text2.text)

In my bash script i am trying to using the equals (=) operator as input for an IF statement, can this be done?

echo "Plese enter an operator as shown in the brackets (-)subtract, (*)Multiply, (+)Add, (/)divide, quit(=)?"
read operator
..........

if [[ $operator == '=' ]]; then
'do something'
fi