C++ Program to Subtract Two Numbers

| Last Updated: | In: C++ Tutorial


This is a simple and easy c++ program to subtract two numbers entered by the user while executing this program. I assume you have basic knowledge of c++ programming language. In the below program, we have used three variables x, y, and subtract. x and y to hold the value of entered by the user …

Function Overriding in C++

| Last Updated: | In: C++ Tutorial


By end of this tutorial, you will be able to learn more about the function overriding, what is function overriding and how to use function overriding in c++ programming language. I have defined the function overriding with the help of an example written in c++ programs. What is function overriding? If we have inherited the …

C++ Program to Print Triangle of Stars

| Last Updated: | In: C++ Tutorial


In this tutorial, I am going to explain how to print the triangle of stars by using c++ programming language, keep your close attention in this post as I am going to share a C++ Program to Print Triangle of Stars while executing below C++ program. C++ Program to Print Triangle of Stars This program …

C++ Program to Print Number Table

| Last Updated: | In: C++ Tutorial


If you want to write a C++ program to print number table, then this tutorial is specially designed for you. Please keep your close attention in this post as I am going to share a C++ program to print number table while executing below C++ program. How to Print Number Table? In this program, we …

Break Statement in C++ Program

| Last Updated: | In: C++ Tutorial


In this tutorial, I will explain how to use the break and continue in c++ programming language. The break is typically used in the context of a switch statement. Below is the standard switch statement with the break. This tutorial will explain you about the break statement in C++ program. After going through of this …

C++ Program to Add Two Numbers

| Last Updated: | In: C++ Tutorial


This is a simple & easy C++ program to add two number entered by the user while executing this program. I assume you have basic knowledge of C++. In the below program, there are three variable x, y, and sum. x and y hold the value of entered by the user and then add the …

C++ Program to Find Fibonacci Series

| Last Updated: | 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 example 3+5 = 8 (the addition of previous two numbers 3 + 8).

Example: Fibonacci series using C++ programming …

C++ Program to Check Even or Odd Number

| Last Updated: | 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 whether number is even or odd using c++ program

Output is: #first try Enter an integer: 12 12 is …

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

| Last Updated: | 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. We are going to find the LCM number of 24 and 60. On the basis of above LCM formula: Example: …

C++ Program to Check Leap Year

| Last Updated: | 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 year if year is divisible by 4 then is_leap_year else if year is divisible by 100 then not_leap_year else year …