+ 2
Why this code is not work in sololearn app same code will be executed properly in pycharm
7 odpowiedzi
+ 4
℅ 👈 this is not a percentage(%) symbol 😁
What you have used is a c/o ("care of" symbol , often used in mails)
I replaced all c/o's with percentage (mod) and it works.
see:
num = int(input('Enter Number For You Want To Print Table:'))
for i in range(1,11):
print('%d * %d = %d'%(num,i,num*i))
+ 3
Was a joke...right?
or a test?
🇮🇳Omkar🕉 passed it then👍
+ 1
Very Funny Mistake,
Thanks For Solutions.
0
Why we can not use this format??
print('%d * %d = %d',(num,i,num*i))
0
The program Run Properly But I can not get desired output
0
My code ,Dont know it is better on e or not!
num = int(input('Enter Number For You Want To Print Table:'))
for i in range(1,11):
print(str(num)+'*'+str(i)+'='+str(num*i))