Computer Science, asked by Procube, 1 month ago

write a java program to print 0 5 10 15 20 15 10 5 0​

Answers

Answered by genius7999
0

Answer:

mport 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+",");

}

}

Explanation:

Im a Java Expert

Answered by nidhi1531
0
Class hi
{
Public static void main();
{
System.out.println(“0 5 10 15 20 15 10 5 0”);
}
}
Similar questions