Computer Science, asked by Anonymous, 8 months ago

Write a program to display the series upto n terms:
3,6,11......
no copy or spam is allowed!!

Answers

Answered by Anonymous
1

Explanation:

public class Series

{

public static void main()

{

Int a =0;

for ( int i =3 ; i<= n ; i =i+2)

{

sum = a + i ;

a = sum;

}

System.out.println(a)

}

}

Hope it helps ❣️❣️

Answered by devilwalker
1

Explanation:

refer to the attachment

Attachments:
Similar questions