You are viewing a single comment's thread. Return to all comments →
public class Solution { public static void Table(int n) { for(int i=1;i<=10;i++) { System.out.println(n+" x "+i+" = "+n*i); } } public static void main(String[] args) throws IOException { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(bufferedReader.readLine().trim()); Table(n); bufferedReader.close(); }
}
Seems like cookies are disabled on this browser, please enable them to open this website
Day 5: Loops
You are viewing a single comment's thread. Return to all comments →
public class Solution { public static void Table(int n) { for(int i=1;i<=10;i++) { System.out.println(n+" x "+i+" = "+n*i); } } public static void main(String[] args) throws IOException { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
}