Computer Science, asked by tanwardhaniram8, 3 days ago

10) write a program to print aseries 1,4,7,10..upto 12 terms.​

Answers

Answered by BrainlyCatish
1

Explanation:

public class KboatSeries

{

public static void main(String args[]) {

for (int i = 1; i <= 34; i += 3) {

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

}

}

}

The output in the attachment above

Attachments:
Answered by nihasrajgone2005
1

Explanation:

public class KboatSeries

{

public static void main(String args[]) {

for (int i = 1; i <= 34; i += 3) {

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

}

}

}

Attachments:
Similar questions