ans = 1 text = str(ans) for i in range(2, n+1 ): text += " X " + str(i) ans *= i print(text, " = ", ans)
More information about formatting options
I'm JR Galia, a JEE programmer, a web developer, a certified PhilNITS IT professional, a FOSS advocate and a proud alumnus of MSU-IIT and VSU.
Enter your email address:
Delivered by FeedBurner
ans = 1
text = str(ans)
for i in range(2, n+1 ):
text += " X " + str(i)
ans *= i
print(text, " = ", ans)