A program in java to print the series 5,10,15,20,25,30,35......n terms
Answers
Answered by
3
Answer:
40
Explanation:
5+5=10 10+5=15.................35+5=40
Answered by
5
Answer:
import java.util.*;
class series
{public static void main (String args[])
{ Scanner k= new Scanner (System.in);
System.out.println("Enter n:");
int n= k.nextint();
for(int i=5;i<=n*5;i+=5)
System.out.print( i+",");
}
}
Similar questions