Write a for loop that will run a total of n times Use this l
Write a for loop that will run a total of n times. Use this loop to add up the values of each column of wavedata, and then find the average of each column
Solution
Scanner guess = new Scanner(System.in); int count =0; int sum=0; int num; System.out.println(\"Enter a number\"); num = guess.nextInt(); for(count =0; count <= num; count++) { sum +=num; System.out.println(\"Your results are:\"+sum); }
