Write a series Java program 1,9,25,49,.......
Answers
Answered by
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
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
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
Environmental Sciences,
7 months ago
Economy,
7 months ago
Music,
7 months ago
Political Science,
1 year ago
Physics,
1 year ago
Hindi,
1 year ago
English,
1 year ago
English,
1 year ago