fork download
  1. def multiplication(n, i = 1):
  2. if n>10:
  3. return
  4. print(n, " * ", i, " = ", n*i)
  5.  
  6. i = i+1
  7. multiplication(n, i)
  8.  
  9. if __name__ == "__main__":
  10. n = int(input())
  11.  
  12. multiplication(n)
  13. # print("TRUE")
  14. # else:
  15. # print("FALSE")
  16.  
  17.  
  18. # def isEven(n):
  19.  
  20. # # finding remainder of n
  21. # # rem = n % 2;
  22. # if n%2 == 0:
  23. # return True
  24. # else:
  25. # return False
  26.  
  27. # if __name__ == "__main__":
  28. # n = int(input())
  29. # if isEven(n):
  30. # print("true")
  31. # else:
  32. # print("false")
  33.  
  34.  
  35.  
Success #stdin #stdout 0.1s 14184KB
stdin
15
stdout
Standard output is empty