Write a program in java to display the first ten terms of the series. 1,4,9,16,....
Answers
Answered by
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
Environmental Sciences,
1 month ago
Physics,
1 month ago
Science,
3 months ago
Environmental Sciences,
9 months ago