View Single Post
  #3 (permalink)  
Old November 7th, 2009, 04:45 AM
sh_erfan sh_erfan is offline
Authorized User
Points: 100, Level: 1
Points: 100, Level: 1 Points: 100, Level: 1 Points: 100, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
Default

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...
The Following User Says Thank You to sh_erfan For This Useful Post:
jawadh_khan786 (January 3rd, 2010)