00:01
Okay, so in this question we want to write a c+ + program, which will store two values inside variables and then display the total of the two variable.
00:18
So here we just have a basic c+ + program, a hello world program.
00:24
So if we run this program, it will simply help put hello world.
00:29
So it's as basic as it gets, it's two lines and it prints hello world.
00:37
So we're going to improve on that.
00:40
This will be our base.
00:42
And we're going to answer the question.
00:48
So we have two integers.
00:52
So integers, we use int, i, and this is the type of both of our variable.
01:02
They will both be integer.
01:05
And then we need to give our variable a name.
01:08
We can call them a and b.
01:10
No need to make it too complicated.
01:15
And then we...
01:16
So now our variable exists.
01:19
And if we put semicolon at the end, we could simply run this program and it would run fine, except it won't...
01:26
It will simply output hello world because we didn't do anything with a and b.
01:32
We didn't give them any value.
01:34
We didn't do anything with them but it's always good when you program to run your program as you code as often as possible to spot mistakes early on so we want to give them two values so we want a to be 50 and b we want b to be 100 and if we run this this still works except it it's it's not doing what we want it to do for now...