+ 1
What's the problem in this code !?
a = int(input("")) i=1 res=1 print(" mutiplication table of "+a+"is:\n") while i<10 res=a*i print(res) i++
5 odpowiedzi
+ 2
Apart from these mentioned by hinanawi, there are 2 more bugs:
1. The i++ syntax is not available in Python.
2. a can't be concatenated with strings in this way as it is an int.
Here is a working version of your code:
https://code.sololearn.com/c50waTGCDFfN/?ref=app
+ 3
i++ --> i+=1
+ 2
various indentation issues and syntax errors:
unindent every line after the first
then add ":" after the "while i<10"
then indent everything after that by one
+ 2
Lucky Luke yes i forgot, the pluses on line 4 should be commas
0
now it works ;thank you so much guys :))