Computer Science, asked by microwaveotg, 1 year ago

write a short program to print the following series:
1 4 7 10 ............ 40

Answers

Answered by gurpreet19914789
1
i don't know more about computer
Answered by anuragniitverma
0

Answer:

class Series

{

public static void main(String[] args) {

 int i;

 for(i=1;i<=40;i+=3)

 {

  System.out.println(i);  

 }    

}

}

Explanation:

run the step of 3 between each number

Similar questions