10) write a program to print aseries 1,4,7,10..upto 12 terms.
Answers
Answered by
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
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