How to perform arithmetic operations in C++?

Arithmetic operations in C++ can be performed using the basic arithmetic operators (+, -, *, /, %). For example, to add two numbers, you can use the + operator:

int a = 5;
int b = 10;
int c = a + b; // c is now equal to 15