Computer Science, asked by suryanshh, 1 year ago

Display the first ten terms of the series 1,4,9....

Answers

Answered by mvishnu2006
5
Answer is 1,4,9,16,25,36,49,64,81,100,121,144,169,196,225

mvishnu2006: mark as brain list
suryanshh: Pls give the full program
mvishnu2006: see 1*1=1, 2*2=4,3*3=9,4*4=16......
Anonymous: language ?
Anonymous: which language?
suryanshh: Java programming English
Anonymous: Tq
suryanshh: Pls can you give it fast
Answered by Anonymous
20

CODE :



class series

{

public static void main(String args[])

{

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

System.out.println(i*i);

}

}

}


EXPLANATION:


I have given a for-loop starting from 1 till 10 .

I have printed the square of each.


Hope it helps !

__________________________________________________________________

Similar questions