// Use this editor to write, compile and run your Java code
public class HelloWorld {
public static void main(String[] args) {
//using for loop
for(int i=10;i>0;i--){
if(i==7){
break; //break the loop
}
System.out.println(i);
}
}
}
// Use this editor to write, compile and run your Java code
public class HelloWorld {
public static void main(String[] args) {
//using for loop
for(int i=10;i>0;i--){
if(i==7){
break; //break the loop
}
System.out.println(i);
}
}
}