We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This is a very simple task. I am writing the solution for my client, who will implement it on his restaurant menu to manage incoming and outgoing orders, resulting in wonderful outcomes.
n = int(input().strip())
for i in range(1, 11): # We want the first 10 multiples
result = n * i
print(f"{n} x {i} = {result}")
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Loops I
You are viewing a single comment's thread. Return to all comments →
This is a very simple task. I am writing the solution for my client, who will implement it on his restaurant menu to manage incoming and outgoing orders, resulting in wonderful outcomes.
n = int(input().strip()) for i in range(1, 11): # We want the first 10 multiples result = n * i print(f"{n} x {i} = {result}")