## Arithmetic operation program in C++ (C Plus Plus) – Addition- Subtraction- Multiplication -Division

In this latest tutorial, we will cover the following topics;

- Addition in C++
- Subtraction in C++
- Multiplication in C++
- Division in C++

### Arithmetic operation program in C++

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
// all arthmetic operation #include <iostream> using namespace std; int main() { int sum,sub,mult,div,module; int a,b; cout<<"Enter value of a ="; cin>>a; cout<<"Enter value of b ="; cin>>b; sum=a+b; sub=a-b; mult=a*b; div=a/b; module=a%b; cout<<"sum is ="<<sum<<endl<<"Sub is ="<<sub<<endl<<"mult is ="<<mult<<endl<<"div is ="<<div<<endl<<"module is ="<<module<<endl; } |

**Output**

**Figure:** Arithmetic operation program in C++ (C Plus Plus) – Addition- Subtraction- Multiplication -Division

Latest posts by Prof. Fazal Rehman Shamil (see all)

- List of Public service commissions - August 31, 2020
- Comparison of fee structure of Pakistani Universities - June 1, 2020
- Past Guess Paper of Auditing - May 12, 2020