Wap to input a no. And print its table till 10 using a function table ()
Answers
Answered by
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
India Languages,
3 months ago
Math,
3 months ago
Social Sciences,
3 months ago
English,
6 months ago
Economy,
11 months ago
Science,
11 months ago
Geography,
11 months ago