You are viewing a single comment's thread. Return to all comments →
// Use do while loop
public class Solution { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in);
int n = sc.nextInt(); int i =1; do{ System.out.println(n+ " x " + i + " = " + n*i); i++; } while(i<=10); }
}
Seems like cookies are disabled on this browser, please enable them to open this website
Java Loops I
You are viewing a single comment's thread. Return to all comments →
// Use do while loop
public class Solution { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in);
}