factorial program in c# using while loop