write a program in Java to display first n terms of series given below 1,1,1,3,5,9,17..
Answers
Answered by
0
Answer:
xasdr dghjut lhbhufg lhhhurvhtsgkoth
Answered by
1
Answer:
Explanation:
class series
{
public static void main()
{
int a=1,b=1;
for(int i=1;i<=10;i++,b++)
{
System.out.println(a+", ");
a+=b;
}
}
}
Similar questions
CBSE BOARD X,
8 days ago
Math,
8 days ago
Math,
8 days ago
Math,
17 days ago
Math,
7 months ago
Social Sciences,
7 months ago