Showing posts with label Python HackerRank 30-day challenge #python #Writing a table in python of number 'n'. Show all posts
Showing posts with label Python HackerRank 30-day challenge #python #Writing a table in python of number 'n'. Show all posts

Thursday, March 3, 2022

 HackerRank Problem(30-day challenge)

Writing a table of number n:

import math
import os
import random
import re
import sys



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