Search:

Type: Posts; User: Mr.777

Search: Search took 0.12 seconds.

  1. Replies
    9
    Views
    1,569

    Re: Question. Lots of Maths!

    Try placing System.out.println after every statement and see where exactly the problem is or if you are good to debug this, try debugging it.
  2. Replies
    9
    Views
    1,569

    Re: Question. Lots of Maths!

    Do you have understanding of Operators precedence?

    As a hint,
    * has higher precedence than +. So, it will be calculated before +.
    Now look at your program.
Results 1 to 2 of 2