what is the output of this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is the output of this code?

import os ans = int(raw_input("Enter the number to find out: ")) for p in range(2,119): p = p + 1 for q in range(2,119): solution = p * q if solution == ans: print str(p) + '' + ' * ' + str(q) + ' = ' + str(solution) else: pass

14th Jan 2017, 5:29 PM
Fredrick Kariuki Wanyai
Fredrick Kariuki Wanyai - avatar
1 Answer
0
A NameError for raw_input
14th Jan 2017, 9:35 PM
Nathan Watkins
Nathan Watkins - avatar