Arithmetic Operators in c++





This video tutorial explains the arithmetic operators present in c++.
You will learn what are arithmetic operators and how to use addition,subtraction,multiplication and division operators in c++ with example.

source code for this tutorial

#include <iostream>

using namespace std;

int main()
{
    int num1 = 10, num2 = 20;
    cout << num1 << " + " << num2 << " = " << num1+num2 << endl;
    cout << num1 << " - " << num2 << " = " << num1-num2 << endl;
    cout << num1 << " * " << num2 << " = " << num1*num2 << endl;
    cout << num1 << " / " << num2 << " = " << num1/num2 << endl;
    return 0;
}

 
Back To Top