Sort by

recency

|

1439 Discussions

|

  • + 0 comments

    1.for(int i=1;i<=10;i++){ 2. System.out.println(N+" "+"x"+" "+i+" "+"="+" "+ N*i);

  • + 1 comment

    import java.io.*;

    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());
    
        bufferedReader.close();
    
        System.out.println(multiplesOf(n, 1, 10));
    }
    
    public static String multiplesOf(Integer n, Integer begin, int limit)
    {
        String str = n.toString() + " x " + begin.toString() + " = " + ((Integer)(n * begin)).toString() + "\n";
        if(begin != limit) return str + multiplesOf(n, begin + 1, limit);
        else return str;
    }
    

    }

  • + 0 comments

    bugged, submit code but didnt appear as solved problem

  • + 0 comments

    public class Solution { public static void main(String[] args) { Scanner scan =new Scanner (System.in);

        int N=scan.nextInt();
    
        for (int n=1;n<=10;n++){
            System.out.println( N + " X " + n + " = " + n * N );
        } 
    
    }
    

    }

  • + 0 comments

    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());
        if(N>=2 && N<=20)
        {
            for(int i = 1; i<=10; i++)
            {
                System.out.printf("%d x %d = %d \n",N,i,N*i);
            }
        }
        bufferedReader.close();
    }
    

    }