Computer Science, asked by rupanshikatoch, 2 months ago

Write a program in java to display the first ten terms of the series. 1,4,9,16,....​

Answers

Answered by anuragshaurya08
1

public class Loop {  

 

 public static void main(String[] args) {  

 

   for(int i=1; i<=10; i++){

     System.out.print(i*i + " " );  

   }

   System.out.println("");  

 }

}

I hope so that my answer is useful to you. If yes then please mark me the brainliest!!!

Similar questions