I am writing a program to calculate the factorial of 365 (365!) and the number generated is to long to print while keeping all the digits!

I need some help to finish this. I was trying to write something similar to a clock loop but failed.

Thanks