As will said the code is correct.It states that you subtract secondNumber from firstNumber.
pay attention to this code:
x=firstNumber - secondNumber;
this means that you lessen socondNumber from firstNumber and assign it to x(a vriable to hold value).so the statement we order the compiler to do in this code is "subtract secondNumber form firstNumber".
I hope could help
Erfan...
|