Now, let's move to the quick demo on the topics which we have covered right now.
So let's move to that memo.
This particular topic regarding which we have covered.
So here is the visual studio code where we are actually having all that, all the important programs
on, I have already explained to you how to install this, how to set up this in your system and how
to start running the programs.
So we can start with the first lesson or the first demo session of this class, which is actually showing
your program to find the area of this.
So why does things you need to identify?
So you do create a program to find a area office certificate.
You have to first think of what are the processes?
What are the variables required to create that or find a circle?
Here again, see, I need radius in order to calculate the area of this output.
Then I need to declare a variable to store that area.
Right?
So timing is ah, because the area I have in the currently two things mainly is areas and then the constant
fight because we know the formula for computing areas by hard square, right?
So to find a area for something which we use the formula in mathematics by square.
So by adding flat out of means various is a constant.
And square is the multiplication of radius stripes, right?
So I will declare a one variable for radius and so be what we get from this execution.
We will be getting area so bias square equal to the area.
That's that in the same.
So I need to store this area in somewhere.
So I need to create one more.
So here you can see the declaration.
So the declaration integer is that various data type because I am always using radius as integer data.
So like, I am not planning to give 5.5 as in potentially planning to keep fighting mass input, so
I am using various media in.
Similarly, I want to calculate the area anyway.
Most of probably the area of a circle will be in decimal number.
So that's why I am using floating point are flawed data because the area should be decimal and my area
variable should be able to store that decimal value.
So I am using floor to define my variable area.
No, I have a constant fight or two three pointer.
So while this is a constant because like bay is always a constant value, its value never changes.
So I have declared floored by all three points.
One for here.
You going to see the Gonski word in the beginning, which means this variable by cannot be changed throughout
the program.
It values always remain, says three point one four.
So remaining steps you can self understand.
Here I am asking the radius of this outbreak.
Then it will be printing the statement because this is a code statement.
We have covered that already.
Then we are entering that value using C in statement, which is actually asking for the radius.
So C in various, then I am asking then I am trying to find out the area that support using the formula
based there.
So how we are writing that bias, that expression here area is the variable rate equal to byte, which
is our constant 3.9 for endo.
And so here I have already told you, like X will not work as multiplication, so we have to use star
symbol at Multiply Operator.
So yet again, see stories you as bad as the multiplayer operator.
So we are calculating areas buying new radius and new videos, which is by square, then I am finding
that area and ending the program using a return zero statement.
Now let's execute this program.
So in order to execute this program, I need to.
Before that, I need to compile this program, right?
Sorry for that.
So I need to compile that program, right?
So I am going to clear the air domain.
Now I am going to compile the program.
So what is a way to compile the program in my system?
I can use C++, followed by the file name, right?
Finally, we might as well find Sakai Area Dot CPB.
Now pressing and.
Well, I have.
At some sort of mistake on my spelling or something because this program is not running.
Let me try again.
C++, which is the way to compile the program, I have already explained why this compilation find.
So, Chris.
The.
Dart, CPB and yeah.
Sexist.
So there is no error declare no Russian yet.
This means that my program is successfully compiled.
No, I need to run this program.
So for that, what will I do?
I will use another command go DOD slash in or out running that.
See, now the program is asking me for the radius of the circuit, so I giving that radius.
And so you can see here three one four is that area.
So one one issue against the area that just slips in is over here and here.
So that's a mistake because this lesion is not the right slash.
We have used the wrong slash.
That's where the value is not coming properly.
So this is this large, you should use backslash.
Now let's see this program again.
So maybe admission slashing to move down to the next lane.
That's why we are using this lesson, right?
We are using this lady to give some space in between the two of I do things, this area and the value
of the area.
That's why we hadn't seen that.
So let's do that again.
We need to Gambella program again.
So I am compiling it again, using it because whenever you make changes on your program, you need to
compare that to get the latest output.
Then I'm using that slash in or out.
No, I can see the radius of the circle that should be under.
I'm giving 10 and I am pressing into.
So now you can see it just leaving one line below and it just displaying area.
Then it's leaving some space, right?
Three point one for that is some space over here.
And then really, it's actually getting out of that program.
So it's having it back space by using Slashdot, and it's actually displaying that really the area correctly,
you can know, like bending to trade binary for that in lieu of bank.
Right?
So 10 squared.
And the three point for that is three one four.
Is that area on that circle?
So have you got this program's idea so we can move to that next setting?