clc
clear

t= 10000
n= 1
factorial_n =1
while factorial_n <= t 
n = n +1 
factorial_n= factorial_n * n
end 

n
factorial_n

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: