Computer Science, asked by Anushkaphokane, 20 days ago

a) Write a program To display the first ten terms of the following series 3,6,12,15....

Answers

Answered by Preethikana1752
2

Answer:

public class KboatSeries

{

public static void main(String args[]) {

for (int i = 3; i <= 30; i = i + 3) {

System.out.print(i + " ");

}

}

}

I hope this will help you

Answered by Anonymous
0

Answer:

In python the shortest program for doing this question is:-

for i in range(3,31,3):

print(i, end=',')

You can also do this by using while loop, but according to me this is the easiest way.

Similar questions