 Hello everybody, welcome back to C++ programming. I'm rid of the knell in the last video We were checking out data types and the kinds of information and things that we can store and manipulate in our C++ Code and in our in our program now in this video. I'm gonna actually Create a new file go ahead and save this one as 0 3 underscore operating on data dot CPP Hey, you can see that exists in my file here awesome. Oh, okay Sorry about that guys. Let's go ahead and include iostream Let's start using our namespace STD and Let's create our main function And Get all that rolling for us awesome Okay, now in the last video you saw we had some integers and Characters and boolean values and stuff like that. We had types of data. So let's have an int Number and that can equal 20 Doesn't matter to me. We're gonna have an int other number That can equal 30 Let's have another variable which is pretty cheesy We can just have an int sum and that can equal number plus the other number Now if we echo out what that sum really is Turn zero at the end of our program here. I go over here to my Terminator If I g++ o3 I run a dot out we get 50 because well, that's the sum of 20 and 30 And we're using the plus sign We're using an operator here. This is the plus sign of the left. I was obviously sorry a a Symbol and a sign an operator to add But what if we had other things? What if we had the difference could equal number minus other number? And then if we displayed, okay, what is the difference? That's just changing the name of the variable here What if we if we run this compile it? Run it and we get negative 10 because 20 minus 30 is negative 10 That's what this subtraction sign is doing. This is an operator This is the minus operator You're typically used to seeing this in math and in any other realms of the world because it's really it's really easy It's pretty simple all it is is an operator and I want to get to that idea across to you guys We actually have other kinds of operators. You see this equal sign right here. We're saying that the number Equals 20 we're assigning a value to this variable the equal sign is an assignment operator We can actually even use We can say We can use other kinds of Assignment operators we can say number plus equals other number Now what this will do is it will take the initial value of number and Then go ahead and add The other numbers value to it That's essentially what it's doing. What if we run this if we display what that number is If I upload my terminal We're gonna get 50 because that's the sum 20 plus 50 that works just fine for us. We have multiplication, of course as well Actually, let's just display that out because you know, of course, we can do that. It doesn't we don't have to have any assignments At any other time if we run this code compile that run that 20 times 30 is an equal 600. What if we actually divide it? number divided by other number What's that do you zero it's 20 doesn't fit very easily into 30 and Well, we could of course change these You notice that this is doing integer division where 20 cannot fit into 30 Normally we would have a decimal for this but because we're using types integers There's no way it's gonna give us a decimal value for this We can fix this later on once we get into typecasting and showing how to change one Type to another but I'm not really getting moving to that just yet. What if we used a 100 divided by 20? We just change the values of these numbers And that is we should have five and that's exactly what we get cool So those are operators. We have multiplication division addition subtraction We have exponents when you actually use two of these two asterisks that works just fine for us and Yeah, we have the same sort of thing with assignment operators. We can also use Number like I had earlier number plus equals other number We can of course say number minus equals other number or from all application number Times equals of the number or divide number divide equals other number plenty of operations and things that we can do with this Simple stuff though. All it is is an operator and Actually when we're using see out you can see these symbols here. That's an operator You might not recognize it because it's different from what you're used to but it's still an operator that allows to do One operation whether not to be addition whether or not it be subtraction or even a more abstract function like display something on the screen So these symbols in their succession or however you want to think of them. They are operators They do things and that's a that's a key term to understand and remember operator. Okay, I Think that's all guys. This is of course a pretty simple topic Especially if you're used to programming and tight in Python and other languages and simple stuff. So we're good here Thank you guys for watching simple programming simple tutorial. See you in the next tutorial You