package com.devmanuals2; import java.io.*; public class WhileExample { public static void main(String[] args) throws IOException { System.out.println("Enter any number"); BufferedReader buffread = new BufferedReader(new InputStreamReader( System.in)); String str = buffread.readLine(); Integer ch = Integer.parseInt(str); System.out.println("The table of " + ch + " is= "); int i = 1; while (i <= 10) { int t = ch * i; System.out.println(t); i++; } } }