//ask user to input a value for n numValue=WinKBInput.readInt("Enter a value for n");
//loop while number of values not exceeded while (valueNo<numValue) { //ask user for a value for n Tn=WinKBInput.readInt("Enter a value for n");
//if n is smaller than stored biggest if (value>biggest) biggest=value; //update biggest //increment value counter valueNo++; }
//perform calulation triNumber=(n+1);
//output result System.out.println("n+1 equals"+triNumber);
//perform calulation triNumber=(n*(n+1));
//output result System.out.println("n*(n+1) equals"+triNumber);
//perform calculation triNumber=(n*(n+1)/2);
//output result System.out.println("n*(n+1)/2) equals" +triNumber);
//output result System.out.println("The triangular number is" +triNumber); } }
i would appreciate it greatly if you could guide me where i have gone wrong. i am not asking you to do it for me, just some guidance in the right direction would be greatly appreciated.