C# Data Types with Example

Introduction : The C# language comes with a set of Basic data types. These data types are used to build…

add comment

C# Program to reverse number

C# Program to reverse number We can reverse a number in C# using loop and arithmetic operators. In this program,…

add comment

C# Program to swap two numbers without third variable

We can swap two numbers without using third variable. The below program is common ways to swap two numbers without…

add comment

C# Program to Check whether the Entered Number is Even or Odd

if a given number is divisible by 2 with the remainder 0 then the number is an Even number. If…

add comment

C# Program to Check a Number is Prime Number or not

Introduction : Prime number is a number that is greater than 1 and divided by 1 or itself. In other…

2 comments

C# Program to Generate Fibonacci Series

Introduction : In case of fibonacci series, next number is the sum of previous two numbers for example 0, 1,…

add comment

C# Program to find sum of elements in a given array

Introduction : C# Program to find sum of elements in a given array, c# program sum of given array elements.Logic…

1 comment

C# program to find maximum and minimum element in array

Introduction : Write a C# program to input elements in an array from user, find maximum and minimum element in…

2 comments

C# Program to Check Whether the Entered Number is a Perfect Number or Not

Defination : A perfect number is a positive integer that is equal to the sum of its proper divisors Here…

add comment

How do you reverse a string in C#

How do you reverse a string in C# We can reverse a string in C# using loop and arithmetic operators….

5 comments