Positive integers 1, 2, 3, 4… are known as natural numbers. This program takes a positive...
Category - C++
Find All Roots of a Quadratic Equation in C++
The Standard Form of a Quadratic Equation looks like this: ax2 + bx + c = 0 The term b2-4ac is...
Find Largest Number Among Three Numbers in C++
In this examples, I’ll show you How to Find Largest Number Among Three Numbers in C++. In...
Check Whether a character is Vowel or Consonant in C++
Inthis C++ Example, we’ll learn How to Check Whether a character is Vowel or Consonant in C++...
C++ Program to Print Multiplication Table of 7
In this example to generate the multiplication table of 7 using for loop. C++ Code:...
Check Whether Number is Even or Odd in C++
In this C++ example, we’ll learn How to check whether number is even or odd. if…else...
Swap Two Numbers in C++
Write a C++ program to swap two numbers. The first program uses temporary variable to swap numbers...
Find Size of int, float, double and char in Your System using C++
To find the size of variable, sizeof operator is used. his program declares 4 variables of type...
Find Quotient and Remainder in C++
Write a C++ program to find the quotient and remainder of a given dividend and divisor. The...
Add Two Numbers in C++
Write a C++ program to calculate the sum of two numbers. In this program, user is asked to enter...
Hello World! Program in C++
Write a C++ program to display “Hello, World!” on the screen. C++ Code: Example 1:...
Find Find HCF/GCD Using For Loop in C++
In this example, we’ll learn How to find GCD in C++. Find GCD using while loop...
C++ Functions With Examples
We have just seen how to vary the course of a program using loops and connections. Before that, I...