hi everyone, i'm chris and i'm just starting out with java. through my java course i am trying to create a java program that computes a series as follows: 1/2 +2/3+ ... i/i+1 up to where i = 20. it also has to display the grand total with each addition, i.e. count 1 and total = .5, count 2 = 1.1667, etc. i am comeing across an error while trying to compile it stateing that the problem is with the system is in the line system.out.println("the total at "+ count + "is" + m);, pointing at the dor between system and out. the code is as follows :
any help is appreciated.//* problem 5.4 page 212*// //* christopher bruce *// public class problem5_4 { public static void main (double[] args) { int count = 1; double m = 0; do { m = m+count/(count + 1); system.out.println("the total at "+ count + "is" + m); count = count ++; } while (count <21); } }