a) Write a program To display the first ten terms of the following series 3,6,12,15....
Answers
Answered by
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
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
English,
10 days ago
English,
10 days ago
English,
20 days ago
Computer Science,
9 months ago
Hindi,
9 months ago
Social Sciences,
9 months ago