Sort by

recency

|

1376 Discussions

|

  • + 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++ ){
            System.out.println(N + " x " + i + " = " + (N*i));
        }
        bufferedReader.close();
    }
    

    }

  • + 0 comments

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

        int num = s.nextInt();
    
        for(int i = 1;i<=10;i++)
        {
            int result = num * i;
            //System.out.println(num + " x " + i + " = " + result);
            System.out.printf("%d x %d" + " = " + result,num,i);
            System.out.println();
    
        }
    }
    

    }

  • + 0 comments

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

  • + 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++)
        {
                System.out.println(N + " x " + i + " = " + (N*i));
        }
    
        bufferedReader.close();
    }
    

    }

  • + 0 comments

    public class Solution { public static void main(String[] args) { Scanner scan= new Scanner(System.in); int n=scan.nextInt(); for(int i=1;i<=10;i++){ int res=n*i; System.out.println(n+" x "+i+" = "+res);

    }
    }
    

    }