Hello, welcome to the attempt tutorial the c++ program series and in this part we'll be looking at the arithmetic operator. The arithmetic operator basically allow you to perform mathematical function. There are five different mathematical operators, addition, subtraction, multiplication, division and modulus. You've probably heard of all five of them, the one that you may have heard of is modulus but the others if you've done any sort of educational maths, you will have heard of him while he should have. So let's go ahead and open up our project. So let's just quickly get rid of this get rid of the end part.
STD. In here, we'll just be doing arithmetic operators will be credited here with some number you can obviously assign values To variable The last thing we'll do variable. ladder is variable name equals blah, blah, blah, whatever we're going to put it in our sddc output, this is easy to show. So the first one, the addition operator, so the 65 plus six. And as you were writing rode life, it is the symbol plus like this basically across your net, we get the result of 11. That's not much more to show obviously, you can do with flow values into the values and what have you.
An excellent do is five minus 99. You might notice both obviously, it does support negative numbers. Next many modifications over the free time binary. To do a time you use the asterik which is above the age on life. Call you may not be able to APR basically the asterisk. So that 27 months this is Brian.
Next opportunity to look at is division 34 divided by two, and the divide is a forward slash. So there we go, we got four divided by two equals two. The problem owner locker is modular, so you just do 5% then the number you want a modulus by to run it, you get a result or one more thing. That module is worth it basically devoid and the answer or the result is the remainder. So if I were to put six modules free, you get zero because there's no made up of four You get to because the whole number he goes into it once, but there's still two remaining. So that's it for this tutorial if you have any questions feel free to message us at support at sonar system calm Okay, the email will be in the description you can comment on this video or just directly method via YouTube.
And that tutorial when we look at the compound assignment operator, if you have any, I mean if you need the source code, you can get it via links in the description. And as usual, thank you for watching and I hope you have a nice day.