C# Program to Swap two numbers without using third variable

Today I am going to write a C# program to Swap two numbers without using third variable. C# Program to Swap two numbers without using third variable: Create a Console Application Project and write the following code. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SwapNumbers { class Program { static void…

C# Program to find Largest Element in a Matrix

Hello Friends, In this post, i am going to write a C# Program to find Largest element in a Matrix. C# Program to find Largest Element in a Matrix: Open Visual Studio and create a Console Application Project. Write the following code in Program.cs file. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;…

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…