[Solved] Output the array so that 10 elements per line are printed
You have not called print method from main method. One more mistake is in your code that, you mentioned about 3 times of index variable and in your code you are taking cube of index variable. public class progprblm5{ public static void main(String []args){ double alpha[] = new double[50]; for(int i =0;i<25;i++){ alpha[i]= i*i; } … Read more