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;…

Bind DataGridView using DataTable in C# Windows Application

Hi friends, In this tutorial, we are going to see how to Bind DataGridView in C# Windows Application. You can use a DataGridView control to display data with or without an underlying data source. Without specifying a data source, you can create columns and rows that contain data and add them directly to the DataGridView using…