C++ Program to Find Fibonacci Series

Prem Tiwari - - 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 …

C++ Program to Check Even or Odd Number

Prem Tiwari - - 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 …

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

Prem Tiwari - - 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. …

C++ Program to Check Leap Year

Prem Tiwari - - 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 …

Swap Two Numbers using C++ Program

Prem Tiwari - - 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 …

Basic Concepts of OOP: Polymorphism

Prem Tiwari - - 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. …

Function Overloading in C++

Prem Tiwari - - 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 …

How to display prime numbers using C++ program

Prem Tiwari - - 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 …