package loops;
public class Loops {
public void display(){
for(int i=10; i<=150; i++){
if(i % 10==0){
System.out.printf("%d, ", i);
}
}
}
public static void main(String[] args) {
Loops ps = new Loops();
ps.display();
}
}
Comments
Leave a comment