Computer Science, asked by Masuka297, 9 months ago

Write a Program in Java to display the first ten terms of the following series:(a).1,2,4,7,11..........(b).1.5,3.0,4.5,6.0......(c).0,3,8,15......(d).0,7,26.....​

Answers

Answered by omkate
2

1) int a = 1;

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

System.out.println(a);

a = a + i;

}

2). double a = 0.0:

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

a = a + 1.5;

System.out.println(a)

}

3)

4) Unable to understand question

Similar questions