Write a program to print the following series 1 4 7 10 ……40. using for loop in java
Answers
Answered by
52
Hey user,your answer goes like:
// To print series of 3
public class series3
{
public static void main(String args[])
{
int i=1;
while(i<=40)
{
System.out.println(i);
i+=3;
}
}
}
Hope this helps...
Pls mark it as brainliest
// To print series of 3
public class series3
{
public static void main(String args[])
{
int i=1;
while(i<=40)
{
System.out.println(i);
i+=3;
}
}
}
Hope this helps...
Pls mark it as brainliest
Similar questions