Back To Java Loops Index
//program to print numbers from 0 to 9 using while statement public class whileloop0to9 { public static void main(String[] args) { int i; i=0; while(i<10) { System.out.println(i); i++; } } }