## C++ Program to swap two numbers in a single line

In this program, You will learn how to swap two numbers in a single line in C++. x ^= y ^= x ^= y Example: How to swap two numbers…

Continue Reading C++ Program to swap two numbers in a single line

## C++ Program to swap two numbers without using third variable

In this program, You will learn how to swap two numbers without using third variable in C++. num1 = num1 + num2 num2 = num1 - num2 num1 = num1…

Continue Reading C++ Program to swap two numbers without using third variable

## C++ Program to find the size of Int, Float, Char, and Double

In this program, You will learn how to find the size of Int, Float, Char, and Double Data Types in C++. int Size:4 float Size:4 char Size:1 double Size:8 Example:…

Continue Reading C++ Program to find the size of Int, Float, Char, and Double

## C++ Program to find remainder without using the modulus operator

In this program, You will learn how to find the remainder without using the modulus operator in C++. 0 = 10 % 5 5 = 5 % 10 Example: How…

Continue Reading C++ Program to find remainder without using the modulus operator

## C++ Program to find quotient without using the division operator

In this program, You will learn how to find quotient without using division operator in C++. 2 = 10 / 5 0 = 5 / 10 Example: How to find…

Continue Reading C++ Program to find quotient without using the division operator

## C++ Program to find quotient and remainder

In this program, You will learn how to find quotient and remainder in C++. 2 = 10 / 5 0 = 10 % 5 Example: How to find quotient and…

Continue Reading C++ Program to find quotient and remainder

## C++ Program to print table of any number

In this program, You will learn how to print table of any number in C++. 14 Table is :14 28 42 56 70 84 98 112 126 140 Example: How…

Continue Reading C++ Program to print table of any number

## C++ Program to execute if statement without any expression

In this program, You will learn how to execute if statement without any expression in C++. 1 = True 0 = False if( a ){ //statement } Example: How to…

Continue Reading C++ Program to execute if statement without any expression

## C++ Program to find the largest of three characters using nested if

In this example, You will learn how to find largest of three characters using nested if statement in C++. List is :a b c => c List is :A b…

Continue Reading C++ Program to find the largest of three characters using nested if

## C++ Program to find the largest of three numbers using nested if

In this example, You will learn how to find the largest of three numbers using nested if statement in C++. List is :10 20 40 => 40 List is :30…

Continue Reading C++ Program to find the largest of three numbers using nested if