Site Loader
Auckland, New Zealand
Here is the algorithm Here is the code snippet
        public static void Fact(int number)
            int fact = 1;
            for (int i = number; i > 0; i--)
                fact = fact * number;
Thanks, Karthik KK

Post Author: Karthik kk

Leave a Reply

Your email address will not be published. Required fields are marked *