Sort by

recency

|

1385 Discussions

|

  • + 0 comments

    //code line

    int result= 0; if ( N >= 2 && N <= 20) for (int i = 1; i <= 10; i++) { result = N * i;

            System.out.println(N+ " x " + i+ " = " + result);
    
        }
    
  • + 0 comments

    if(N <= 20 && N >= 2){
    } for(int i = 1; i <= 10; i++){ int mult = N * i; System.out.println(N + " x " + i + " = " + mult); }

  • + 0 comments
            int N = Integer.parseInt(bufferedReader.readLine().trim());
            bufferedReader.close();
            if(N <= 20 && N >= 2){    
            } for(int a = 1; a <= 10; a++){
                    int mult = N * a;
                            System.out.println(N + " x " + a + " = " + mult);
                    }
            }
    }
    

    `

  • + 0 comments

    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));

        int N = Integer.parseInt(bufferedReader.readLine().trim());
    
        for(int i=1;i<=10;i++){
            int value = N*i;
            System.out.println(N+" x "+i+" = "+value);
        }
        bufferedReader.close();
    }
    

    }

  • + 0 comments

    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); } } }