Read number(N)keyed in by user
Set factorial to 1
While N is not equal to 0
Set N= N-1
Edited by __avd: Added [code] tags. For easy readability, always wrap programming code within posts in [code] (code blocks).
Edited by mike_2000_17: Fixed formatting