Back To Java Loops Index
//program to input two numbers a and b and display numbers between them using for loop public class forloopatob { public static void main(String[] args) { int a,b; int i; a=5; b=15; for(i=a;i<=b;i++) { System.out.println(i); } } }