Computer Science, asked by majumdarraja200, 5 months ago

A program in java to print the series 5,10,15,20,25,30,35......n terms

Answers

Answered by akshaykumarbg20
3

Answer:

40

Explanation:

5+5=10 10+5=15.................35+5=40

Answered by samridhi0424
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