Sort by

recency

|

1220 Discussions

|

  • + 0 comments

    Java Syntax for generating a table

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

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

  • + 0 comments

    import math import os import random import re import sys

    n=int(input()) i=1 for i in range (1,11): print (f"{n} x {i} = {(n*i)}")

  • + 0 comments

    for(int i=1;i<11;i++) { cout<

  • + 0 comments

    Javascript

    function main() { const n = parseInt(readLine().trim(), 10);

    for(let i=1; i <= 10; i++){
    console.log(``${n} x $`{i} = ${n*i}`)
    }
    

    }