1497

Array

Array :  An array is a fixed-size collection of the same type of elements. We know that variable can store single value but it does not support to store multiple values. So, C# introduced an array to overcome the problem. Array is a reference type and it uses a namespace System.Array. Array is a fixed-size […]

Read More
925

Factorial

Factorial is the product of an integer and all the integers below it; for example, factorial four (4!)=1*2*3*4=24. C# program for Factorial. using System; namespace Factorial { class Program { static void Main(string[] args) { int factorialNumber=1; Console.Write(“Please enter a number:”); int number = int.Parse(Console.ReadLine()); for(int i=1; i

Read More