Computer Science, asked by shristiKhannna22, 6 months ago

Wap to input a no. And print its table till 10 using a function table ()​

Answers

Answered by yesiamin6
0

Answer:

def table(n):

for i in range(0,11):

print("",n,"*",i,"=",(n*i))

x=10

table(x)

Explanation:

This is the code written in PYTHON LANGUAGE

Here I just initialized the value for x i.e x=10;

Instead you can accept value at run time

X=int(input("ent a number\n")

Then you can pass this argument to the function

The output of the code is attached look at that

. Do follow for more programs

Attachments:
Similar questions