C++ Program to swap two numbers with and without third variable
This article guide you for writing a Program in C++ which swap the two numbers. Here, We have two methods to swap the two numbers in C++
This article guide you for writing a Program in C++ which swap the two numbers. Here, We have two methods to swap the two numbers in C++
We can reverse a number in C++ using loop and arithmetic operators. In this program, we are getting number as input from the user and reversing that number.
Before going to write the C++ program to check whether the number is Armstrong or not, let’s understand what is Armstrong number.
Factorial Program in C++: Factorial of n is the product of all positive descending integers. Factorial of n is denoted by n!.
A palindrome number is a number that is same after reverse. For example 121, 34543, 343, 131, 48984 are the palindrome numbers.
Let’s see the prime number program in C++. In this C++ program, we will take an input from the user and check whether the number is prime or not.
In fibonacci series, next number is the sum of previous two numbers for example 0, 1, 1, 2, 3, 5, 8, 13, 21 etc. The first two numbers of fibonacci series are 0 and 1.