Arithmetic Operators In C++

C++ supports five arithmetic Operators

Posted by Zohaib Qazi on may 15, 2017

Arithmetic Operators In C++

After reading this post you will come to understand that what are arithmetic operators, , differnce between addition, division multiply, minus and remainder. However, clear your concept by reading this post and watching our Balochi videos which is placed below.

Arithmetic Operators

C++ language supports arithmetic operators which are used to calculate the values. And there are five arithmetic operators in C++ addition, minus, multiplication, division and remainder are arithmetic operators.

Addition ( + ) : The + operator adds its operands like 2+ 2 = 4;

Minus (- ) :The - operator subtracts the second operand from the first.Like 4-2 = 2

Multiplication (*): the * operator multiplies its operands. Like 3*2 = 6

Division ( / ) : The / operator divides its first operand by the second Like 2/2 = 1

Remainder (%) : The % operator finds the modulus of its first operand with respect to the second. That is, it produces the remainder of dividing the first by the second. Like 7%2 = 1

Arithmetic Operators In C++ Video in Balochi

Arithmetic Operator C++ code by balochprgorammer


#include < iostream >
using namespace std;
int main()
{
int a = 20;
int b = 10;
int c= 31;
cout << "Addition : " << a+b << endl ;
cout << "Minus : "<< a-b << endl ;
cout << "Multiplication : "<< a*b << endl ;
cout << "Division : "<< a / b << endl ;
cout << "Division : "<< c % b << endl ;
return 0 ;
}