# C++ Program for Number Swapping

Posted by Prem Tiwari | Updated on | .

A Few days back when I was in Delhi, one student asked me how to write a c Plus Plus program to swap two numbers by using the temp variable. I had make understand the …

# What is Temporary Variable

Posted by Prem Tiwari | Updated on | .

A temporary variable is a variable which holds the data for very short time, usually, it used to hold data temporary that will soon be discarded in the computer programming language. See the below example, …

# Switch Case Statement in C++ Programming Language

Posted by Prem Tiwari | Updated on | .

In this tutorial, you will learn about the switch case statement and how to use the switch case statement in c++ programming language. Please see the below switch case statement diagram for better understanding. Switch …

# C++ Program to Display Factors of a Number

Posted by Prem Tiwari | Updated on | .

We assume you have a basic knowledge of c++ programming language, c++ loop, and C++ if, if…else and Nested if…else. In the below program we execute the for loop and if statement to get the …

# C++ Program to Find Fibonacci Series

Posted by Prem Tiwari | Updated on | .

In this program, we will explain how to find the Fibonacci series in c++ programming language. Below is the main logic to find the Fibonacci series: The addition of first two numbers in sequence. For …

# C++ Program to Check Even or Odd Number

Posted by Prem Tiwari | Updated on | .

We assume you have basic knowledge of c++ programming language. In this program, we have used the if…else statement to check even or odd, entered by the user during program execution. Example: How to check …

# C++ Program to Find LCM (Least Common Multiple)

Posted by Prem Tiwari | Updated on | .

In this program, we have explained how to find the LCM (Least Common Multiple) numbers using the c++ programming language. below is the formula to calculate the LCM (Least Common Multiple) numbers from given numbers. …

# C++ Program to Check Leap Year

Posted by Prem Tiwari | Updated on | .

This program will check the entered year by the user is a leap year or not. In this program, we have used the if…else statement to check the leap year. Pseudo code to check leap …

# Swap Two Numbers using C++ Program

Posted by Prem Tiwari | Updated on | .

In this program, I will explain how to swap two numbers using c++ program with the help of temporary variable. in this program, we are using the three variables a, b and temp. Before swapping. …

# Basic Concepts of OOP: Polymorphism

Posted by Prem Tiwari | Updated on | .

In this tutorial, I will explain the basic concepts of polymorphism of OOP (Object Oriented Programming). I will make this tutorial as easy as possible so that it would be easy to understand to everyone. …