Switch Case Statement in C++ Programming Language

By Prem Tiwari in C++ Tutorial. 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

By Prem Tiwari in C++ Tutorial. 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

By Prem Tiwari in C++ Tutorial. 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

By Prem Tiwari in C++ Tutorial. 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)

By Prem Tiwari in C++ Tutorial. 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

By Prem Tiwari in C++ Tutorial. 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

By Prem Tiwari in C++ Tutorial. 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

By Prem Tiwari in C++ Tutorial. 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. …

Function Overloading in C++

By Prem Tiwari in C++ Tutorial. Updated on


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

By Prem Tiwari in C++ Tutorial. Updated on


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 …