# C++ Programs

## Class and object program in c++

Class and object program in c++ is simple and basic program in object oriented programming concept. In this tutorial we will see C++ classes and objects, simple class program in c++. First we will see what is class, how to define class and how to create object in c++. What is class ? Class definition : …

## Find largest of three numbers using friend function

Find largest of three numbers using friend function is a simple program to find maximum among two number. In this tutorial we will see what is friend function, how to find maximum number and program to find grater value among three number in c++. Friend function definition : Friend function is a special function which is …

## Swapping of two numbers in c++

Swapping of two numbers in c++ is c++ program to swap two numbers in c++ without using third variable In this tutorial, we are going to learn new program which is a simple program and most commonly used in exams or in interviews that is Swap two numbers without using third variable. What is swapping: Swapping two number means …

## Reverse number in cpp

Reverse number in cpp is another easy and simple program which mostly asked in exams. In this tutorial, we are going to learn how to reverse a number programmatically Reverse Number Logic We separate digits in number by modulus operation which gives us a digit in a number. Rem = number % 10 After separating number …

## Print 1 to 100 numbers in cpp

Print 1 to 100 numbers in cpp  is very simple and easy program to implement. In this tutorial we are going to learn program which is Print alphabets 1 to 100. Topic you need to know for this program is : looping in c – for loop , while , do while loop basic input output …

## Find power of a number in cpp

Find power of a number in cpp  is cpp program to find exponent of a number. In this tutorial we are going to one simple and easy program find power of a number in cpp. First we will how to calculate power of a number, program to calculate power of a number in c++. How …

## Fibonacci Series in cpp

Fibonacci Series in cpp simple program which is implemented using different method in cpp. In this tutorial we are going to leans  what is Fibonacci series , Fibonacci series algorithm, Fibonacci series in cpp. what is Fibonacci : Fibonacci is a series of numbers starting from 0 and adding with two numbers before it. Fibonacci series logic Logic is  …

## Find leap year

Find leap year : In this tutorial, we are going to learn new program which is program for leap year leap year program in cpp is very simple and easy program to write. What is a leap year Leap year is calendar year having one extra day which is to make a synchronized and seasonal year. …

## Find largest of two numbers

Find largest of two numbers is c++ program to find largest of two numbers. In this tutorial we are going to one simple and easy program in cpp programming which is to find largest of two numbers. How to find largest of two numbers. First we take two numbers input from user. Then using the condition …

## Print alphabets a to z in cpp

Print alphabets a to z in cpp : In this tutorial, we are going to see a program to Print alphabets a to z. For this program you only require to know the following cpp programming concept : Looping in cpp: for loop, while loop, do while loop Logic to Print alphabets a to z : As we …