Sort by

recency

|

1209 Discussions

|

  • + 0 comments

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

  • + 0 comments

    Python:

    n = int(input().strip())
    for i in range(1,11):
        print(f'{n} x {i} = {n*i}')
    
  • + 0 comments
       n = int(input().strip())
        for j in range(1, 11):
            print(f"{n} x {j} = {n*j}")
    
  • + 0 comments

    Python 3 Solution

    !/bin/python3

    import math import os import random import re import sys

    if name == 'main': n = int(input().strip()) for i in range(1,11): print(n, "x", i, "=", n*i)

  • + 0 comments
    java
    
    for(int i=1;i<11;i++){
                System.out.println(n+" x "+i+" = "+(i*n));
            }