Posts

Showing posts with the label Factorial Program using C#

Factorial Program using C#

This is the basic program for the beginners. Here's how to f ind the factorial of 3. Mathematically it follows like th is 3*2*1=6 class FactorialProgra m     {           static void Main ( string [] args)         {             var fp = new FactorialProgra m();            Console . Write ( "\n Enter the number:\t" );             var result = fp.fact( int . Parse ( Console . ReadLine ()));            Console . WriteLine (result);            Console . ReadLine ();         }           in...