Professional Documents
Culture Documents
Q1) Create an input file. The contents of the file will be any 5
natural numbers. (10, 12, ..)
Write a python program to read the natural numbers from the
file, compute its factorial, and write it to an output file.
Ans) Input file:
CODE:
OUTPUT FILE: