C# Program to find the sum of all item of an Integer Array

Here I am going to write a C# Program to find the sum of all item of an Integer Array. C# Program to find the sum of all item of an Integer Array. Create a Console Application Project and Write the following code. code lang=”c” collapse=”false”] using System; using System.Collections.Generic; using System.Linq; using System.Text; using…

C# Program to check whether a number is prime or not using Recursion

Here we will see a simple program to check whether a number is prime or not using Recursion in C#. What is Prime Number? A prime number is a natural number greater than 1 that cannot be formed by multiplying two smaller natural numbers. A natural number greater than 1 that is not prime is…

C# Program to Print Pyramid Pattern in C#

In this session, we will see how to Print Pyramid Pattern in C#. This is mostly asked interview question for the beginner. Pyramid Pattern of Number in C#: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PyramidPattern { class Program { static void Main(string[] args) { int iRows = 6, iSpace, iNumber;…