WEBVTT

00:00.000 --> 00:06.000
Hi guys, today I am going to
teach the concept of variables

00:06.000 --> 00:14.000
Variable means which is the data which can
flow under the memory not permanently itself

00:14.000 --> 00:23.000
This is the simple definition of variables.
First of all, they see how to create a variable

00:24.000 --> 00:30.000
You can create a variable of any
name you can create as a variable

00:30.000 --> 00:42.000
Like this or whatever name you can create as a variable. But
another important stuff is you can't create a variable as a number

00:42.000 --> 00:48.000
You can't create a variable as any more
number, you can't create as a variable

00:48.000 --> 01:00.000
First, x means this is called as variable.
I am going to show some data, which was 10

01:02.000 --> 01:13.000
X is called as variable. 10 means it's a data.
The 10 goes and goes to show under this variable

01:13.000 --> 01:26.000
X can hold 10. This is the meaning of variable. When you create the
variable, another important task is you have to specify the data type

01:26.000 --> 01:33.000
Which is the appropriate data type you
are going to store this 10 variable

01:33.000 --> 01:43.000
So, this is considered as integer. So, this is
considered as integer because it's a number

01:43.000 --> 01:49.000
You have to specify the data type
as integer. Integer means it

01:49.000 --> 01:55.000
This is called as integer data.
This how you can create a variable

01:55.000 --> 02:04.000
If you want to store some string value,
how can you store as a string value

02:04.000 --> 02:21.000
String value means something. So, this is a string
variable. Some a, b, c, something like that

02:25.000 --> 02:34.000
Some variable, I put it here. So, you
have to specify the data type string

02:37.000 --> 02:48.000
This text is belongs to string data
type. X can hold any string value

02:48.000 --> 02:57.000
It belongs to data type string. Isn't it? If you store
the integer value, number, it belongs to integer data type

02:57.000 --> 03:04.000
This is the basic string task.
This is the meaning of data type

03:07.000 --> 03:17.000
This is called as variable

03:17.000 --> 03:27.000
Variable can hold any data.
This is the mean by data

03:27.000 --> 03:36.000
If you want, take a note of it. This is a very
important task when you are creating the variable

03:41.000 --> 03:50.000
This is a basic task. Got it? I hope
you all understand this concept

03:50.000 --> 03:56.000
Very basic concept. If you want to
store some document, point size

03:56.000 --> 04:16.000
So, I put the data anywhere. And
search. I declare some salary like this

04:20.000 --> 04:31.000
I put the annualized job. Double
means you can store the point in hand

04:31.000 --> 04:41.000
You can store any big point value.
It belongs to double data type

04:41.000 --> 04:51.000
Got it? Okay, I hope you all understand this
concept. Let me move into some examples

04:51.000 --> 04:58.000
So, it is very helpful for
you all. Let me remove this

05:02.000 --> 05:09.000
First, I am going to declare two
numbers and calculate the total

05:09.000 --> 05:17.000
First, I input two numbers. 10, 20. I
want to calculate and display the total

05:17.000 --> 05:29.000
How to do this? Using variable. Declare two integer variables.
Integer variables and calculate and display the total

05:29.000 --> 05:42.000
So, first int x is one variable. So,
10. Again, int y is another variable

05:44.000 --> 05:55.000
I have input two data. 10 and
20. x is 10. So, 10 can show 10

05:55.000 --> 06:02.000
x can show 10. y can show
20. I am going to calculate

06:02.000 --> 06:14.000
So, int dot equal x plus y. Now,
what happens? What is mean by this

06:14.000 --> 06:22.000
x over 10, y over 20. So,
here 10 comes, 20 comes

06:22.000 --> 06:29.000
Both add and show into top three variables.
Now, you are going to print the value

06:29.000 --> 06:39.000
Control dot right line. Stop

06:40.000 --> 06:52.000
After you write, you have to read the variable.
So, you have to call the read line method

06:54.000 --> 07:03.000
When you execute the program,
you can get the output as 20

07:03.000 --> 07:13.000
This how you can print the variable and calculate
this. Calculate this data and get the output like this

07:13.000 --> 07:20.000
I hope you guys, you all have enjoyed this
tutorial. You can get it as my upcoming tutorial

07:20.000 --> 07:25.000
Please subscribe my channel. Thanks
