We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Introduction
- Java Loops I
- Discussions
Java Loops I
Java Loops I
Sort by
recency
|
1385 Discussions
|
Please Login in order to post a comment
//code line
int result= 0; if ( N >= 2 && N <= 20) for (int i = 1; i <= 10; i++) { result = N * i;
if(N <= 20 && N >= 2){
} for(int i = 1; i <= 10; i++){ int mult = N * i; System.out.println(N + " x " + i + " = " + mult); }
`
import java.io.; import java.math.; import java.security.; import java.text.; import java.util.; import java.util.concurrent.; import java.util.regex.*;
public class Solution { public static void main(String[] args) throws IOException { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
}
public class Solution { public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); for(int i=1; i<11; i++){ System.out.println(n+" x "+i+" = "+n*i); } } }