What is that ?
An arithmetic operator is a symbol that allows us to make mathematical operations like addition, subtraction, multiplication and division.
How to use them in
Let’s know the basic ones first
To use them is very simple, we saw an introduction on our last lesson, is pretty much the same as you do in your primary school:
###### Don’t pay attention to the comments
//, we are going to explain them in further lessons
Let’s do a something a little bit more complex, let’s go and calculate the average of 5 random numbers
We need to notice that here in
c and other programing languages, the arithmetical operators have rules of precedence, the multiplication and the division will execute first than the addition and the subtraction, that means: