## Prime numbers from 1 to N in reverse order in C#

Prime numbers from 1 to N in reverse order in C# – Learn how to display the prime numbers in reverse order. For example you want to display prime Numbers 1 to 20 in reverse order as 19,17,13,11,7,5,3,2 Prime numbers from 1 to N in reverse order in C# Example Program using System; class Program … Read more

## Check if number is palindrome in C#

Check if number is palindrome in C#  Learn how to  reverse a number and compare the number with the original number for deciding whether the number is same or not. Check if number is palindrome in C# A number is palindrome number, when its number is same when digits are reversed. For example 565, if we … Read more

## C#Program to find prime numbers in a given range

C#Program to find prime numbers in a given range – Learn how to identify the prime number, and display prime numbers between the given rane. Prime Number A number which is divisible by 1 and itself is called prime number. Prime number contains only 2 factors i.e 1 and the self number. For example, consider … Read more

## Divide two integers without * / and % in C#

Divide two integers without *, / and % in C#. Learn how to divide two numbers with bitwise operators,’+ and _’ amd recursive functions. Divide two integers without *, / and % in C# For Example there are 2 numbers number1 and number2 where number1 = 11 and number2=3, then division of number1 and number2 … Read more

## Add Two Numbers Without Arithmetic Operators in C#

Add Two Numbers Without Arithmetic Operators in C Sharp – Add Two Numbers – Learn how to add 2 numbers without using + operator To calculate the sum, we can use XOR operator. This XOR operator is a bitwise operator that perform addition operation on bits. if over flow occurs we can take that as carry … Read more

## Reverse Number program in C sharp-Display number in reverse order

Reverse Number program in C sharp – Learn how to reverse a given input number using for , while, do-while loops, function and recursion. For example if you have a number 597, then reverse of that number is 795. Reverse of 597=795. Reverse Number program  examples  in C sharp Reverse Number program using while loop … Read more

## Swap 2 numbers Program in C sharp – using different techniques

Swap 2 numbers Program in C sharp – Learn how to interchange values between 2 variables, with and without using temporary variables ,functions with call be reference and using arithmetic and bitwise XOR operators. Also learn how to code the logic in single line to  interchange values between 2 variables. Swapping means interchanging.For example if you have two … Read more

## Factorial program in C# – Simple ways to find factorial of a number

Factorial program in C# with example and logic. l For Example to find the factorial of a number 6 is 720. (6!=6*5*4*3*2*1=720) How to find factorial? The factorial of a number denoted as n!. Factorial Formula. n!=n*(n-1)*(n-2)*…*1 For suppose to find the factorial of a number 6 as based on above formula. 6!=6*(6-1)*(6-2)*(6-3)*(6-4)*(6-5) =6*5*4*3*2*1 =720 … Read more