## Swap Two Numbers

Swap means exchange the value of two variable. There is four different method. Using Temporary Variable Without Using Temporary Variable Using Bitwise Operator Using Multiplication And Division Using Temporary Variable #include <iostream> using namespace std; int main() { int a = 31, b = 12,… Read More »Swap Two Numbers

## Find Quotient and Remainder

In this program,it will take  two integers (divisor and dividend) and find the quotient and remainder. To compute quotient and remainder, both divisor and dividend should be integers. #include <iostream> using namespace std; int main() { int divisor, dividend, quotient, remainder; cout << “Enter dividend:… Read More »Find Quotient and Remainder

## Add Two Numbers

In this program, two integer values taken from user and then sum of this values are stored in another variavle and then print it. #include <iostream> using namespace std; int main() { int firstNo, secondNo, sumOfTwoNo; cout << “Enter two integer values: “; cin >>… Read More »Add Two Numbers

## Display Number Entered By User In C++

cin>> is used to take value from the user. cout<< is used to print value. #include <iostream> using namespace std; int main() { int no; cout << “Enter an integer value: “; cin >> no; cout << “You entered ” << no; return 0; }… Read More »Display Number Entered By User In C++

## Printing Hello World In C++

Learning C++ programming can be simplified into: Writing your program in a text-editor and saving it with correct extension(.CPP, .C, .CP) Compiling your program using a compiler or online IDE The “Hello World!” program is the first step towards learning any programming language and also… Read More »Printing Hello World In C++