generate this series 1,4,9,.....n in java
Answers
Answered by
1
hell. ...ooo...!!!
class series
{
public static void main(String[]args)
{
int i,j; for(i=1; i<=n; i++)
{
j=i*i; System.out.println(j);
}
}
}
hope this helps you....!!!
class series
{
public static void main(String[]args)
{
int i,j; for(i=1; i<=n; i++)
{
j=i*i; System.out.println(j);
}
}
}
hope this helps you....!!!
Answered by
0
public class Series
{
public static void main(String[] args)
{
int a;
for(int a=1; a<=n; a++)
{
System.out.print(a*a + " " );
}
System.out.println(" ");
}}
{
public static void main(String[] args)
{
int a;
for(int a=1; a<=n; a++)
{
System.out.print(a*a + " " );
}
System.out.println(" ");
}}
siddhartharao77:
Thank You So Much For the Brainliest..
Similar questions
Physics,
7 months ago
Math,
7 months ago
English,
7 months ago
Math,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago