Print 1 to 10
Print numbers 1 through 10 with a loop.
package DSA.Flow_control;
public class oneto10 { public static void main(String[] args) { int c = 1; while (c <= 10) { System.out.println(c); c++; } }}