If it is not working, time for some debugging.
Work through all the forumulas manually to verify that you understand them and that they give the right results.
Write the results for each step on...
Type: Posts; User: Norm
If it is not working, time for some debugging.
Work through all the forumulas manually to verify that you understand them and that they give the right results.
Write the results for each step on...
Then what about this:
Post a console that shows a problem?
Please copy the full contents of the command prompt console from when you execute the program and paste it here that shows the problem.
What was the program's output for the data: 7, 13 and 36? ...
What is the input and output for the program?
When I used this:
StringReader sr = new StringReader("7\n13\n36\n");
BufferedReader buff=new BufferedReader(sr); //new...