Computer Science, asked by shariqansari02, 1 year ago

Write a series Java program 1,9,25,49,.......

Answers

Answered by pratik9059
40
hey mate (:(:(:(:######

1, 9, 25, 49, 81…..

series is
class prog
{
void display()
{
for (int i = 1; i<20 ; i+=2 )
{
int a=i*i;
System.out.print(a+",");
}
}
}

hope it help uuuu
Answered by ShreshthaSaha
17

Answer:

Here is your answer

Explanation:

class series

{

public static void main(String args[ ])

{

int d;

for(int i=1;i<=20;i=i+2)

{

d=i*i;

System.out.print(d+" ");

}

}

}

.

.

.

plzz mark it as the brainiest answer!!!

Similar questions