Posts

Showing posts with the label Program to find factorial of a number

Program to find factorial of a number

Image
   Step 1: Open Visual Studio and select console application. Step 2: Write a Program to find factorial of number. using  System; using  System.Collections.Generic; using  System.Linq; using  System.Text; using  System.Threading.Tasks; namespace  NumberFactorialConsoleApp {      class   Program     {          static   void   Main ( string []  args )         {              int   number ;              Console . WriteLine ( "Enter a number to get factorial of number" );              number  =  int . Parse ( Console . ReadLine ());        ...