Computer Science, asked by vidhi200447, 7 months ago

WAP in Java to print
[without using scanner]
3, 8, 15,24,35..... n terms​

Answers

Answered by kaurmanveer
1

Answer:

public class Main

{

public static void main(String[] args) {

int sum=0;

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

{

if(i==1)

continue;

sum=sum+i;

System.out.print(sum+",");

}

}

Explanation:

here value of n is 20.

Answered by NAMAN1033
1

Answer:

What is the question

Explanation:

Mark me as brainlist

Similar questions