Posted by Prem Tiwari | Updated on | in C++ Tutorial.
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 …
Posted by Prem Tiwari | Updated on | in C Programming Tutorial, C++ Tutorial.
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, …
Posted by Prem Tiwari | Updated on | in C++ Tutorial.
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 …
Posted by Prem Tiwari | Updated on | in C++ Tutorial.
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 …
Posted by Prem Tiwari | Updated on | in C++ Tutorial.
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 …
Posted by Prem Tiwari | Updated on | in C++ Tutorial.
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 …
Posted by Prem Tiwari | Updated on | in C++ Tutorial.
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. …
Posted by Prem Tiwari | Updated on | in C++ Tutorial.
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 …
Posted by Prem Tiwari | Updated on | in C++ Tutorial.
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. …
Posted by Prem Tiwari | Updated on | in C++ Tutorial.
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. …
Posted by Prem Tiwari | Updated on | in C++ Tutorial.
By end of this tutorial, you will be able to learn more about the function overloading, what is function overloading and how to use function overloading in c++ programming language. I have defined the function …
Posted by Prem Tiwari | Updated on | in C++ Tutorial.
In the below program we have defined the checkPrimeNumber() function to check the prime number from the given maximum range of number by the user. This is a very easy program to display prime numbers …