write a short program to print the following series:
1 4 7 10 ............ 40
Answers
Answered by
1
i don't know more about computer
Answered by
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