1
00:00:03,680 --> 00:00:05,680
Hello, everyone, and welcome back to the cause.

2
00:00:06,170 --> 00:00:09,950
So in the last class, we did two programs in those two programs.

3
00:00:10,070 --> 00:00:15,800
What we did was we just took two integers and we added them in the end of their example.

4
00:00:15,890 --> 00:00:19,970
We just took a few integers and we converted simple interest based on them.

5
00:00:20,850 --> 00:00:24,710
OK, so let's make those problems a little more interesting.

6
00:00:25,340 --> 00:00:25,940
So.

7
00:00:29,610 --> 00:00:36,390
Instead of taking and I quote, Spin and Jagels fifteen.

8
00:00:38,130 --> 00:00:40,940
We will let the user give us what are the two numbers?

9
00:00:40,990 --> 00:00:42,270
But do they want us to add?

10
00:00:43,670 --> 00:00:48,520
For example, use it will give us the values of principle read.

11
00:00:50,240 --> 00:00:51,740
And based on these values.

12
00:00:52,100 --> 00:00:53,860
We will conclude our simple interest.

13
00:00:55,110 --> 00:01:00,690
OK, so what we want now is we want our program to start taking input from the user.

14
00:01:05,630 --> 00:01:12,680
OK, so our program was in Dagestan and Jake was fifteen and Gabler's hypoplastic, and then I was sprinting

15
00:01:12,900 --> 00:01:13,190
gey.

16
00:01:16,990 --> 00:01:20,170
OK, so let us first run this program.

17
00:01:20,470 --> 00:01:21,730
So what should be my output?

18
00:01:22,330 --> 00:01:24,400
And plus fifteen Nerdist 25.

19
00:01:24,490 --> 00:01:25,830
So the value of case 25.

20
00:01:26,320 --> 00:01:28,110
So my output should be 25.

21
00:01:28,660 --> 00:01:28,910
OK.

22
00:01:29,230 --> 00:01:31,360
So let's build and then.

23
00:01:36,130 --> 00:01:40,490
OK, so 25 is getting printed and these two lines are also getting printed.

24
00:01:41,030 --> 00:01:43,850
But why these two lines are getting printed.

25
00:01:44,240 --> 00:01:48,710
So basically these two lines tells us that your program has finished its execution.

26
00:01:48,980 --> 00:01:49,270
OK.

27
00:01:51,930 --> 00:01:56,730
OK, so before we learn how to take in perfect loser, I wonder discuss one more thing.

28
00:02:01,690 --> 00:02:04,160
OK, so when we write in time.

29
00:02:05,600 --> 00:02:08,930
So this line is called Declaration.

30
00:02:10,400 --> 00:02:16,010
We declared a variable eye when we arrived and I was 10.

31
00:02:16,850 --> 00:02:18,220
So this line is called.

32
00:02:20,600 --> 00:02:26,630
So this line is called declaration plus initialization.

33
00:02:31,190 --> 00:02:33,770
And when we ride and die.

34
00:02:35,000 --> 00:02:37,640
And then the next line, when we write, I call Spain.

35
00:02:38,120 --> 00:02:41,690
So this line is called declaration.

36
00:02:42,560 --> 00:02:45,140
And this line is called assignment.

37
00:02:47,920 --> 00:02:49,120
We declared a very.

38
00:02:50,030 --> 00:02:52,630
And I sign a valy of 10 to my variable.

39
00:02:52,840 --> 00:02:56,430
I similarly here I declared my variable, I.

40
00:02:56,840 --> 00:02:58,310
And I initialize my variable.

41
00:02:58,310 --> 00:02:59,600
I do then.

42
00:03:00,310 --> 00:03:00,620
OK.

43
00:03:01,380 --> 00:03:04,370
So obviously, let's come back to our equation.

44
00:03:04,390 --> 00:03:05,800
How debate in Britain leaves a.

45
00:03:09,980 --> 00:03:16,880
OK, so now the thing that I want do changes, I want this I n g to be input from the user.

46
00:03:17,870 --> 00:03:21,050
So we will use an inbuilt functionality called Thien.

47
00:03:24,820 --> 00:03:29,470
So we will use an inbuilt functionality guard see in.

48
00:03:30,270 --> 00:03:32,700
Sarin is used to take input from the user.

49
00:03:33,180 --> 00:03:40,350
And just like sealed in is also defined in a file called Ustream, which we have already included in

50
00:03:40,350 --> 00:03:40,860
our called.

51
00:03:42,110 --> 00:03:48,480
OK, so how to print, for example, and take Wilston?

52
00:03:49,160 --> 00:03:51,500
And if I want to print the value of them, what will I do?

53
00:03:51,530 --> 00:03:53,910
I will write C out.

54
00:03:54,200 --> 00:04:00,700
I similarly, if you want the big input, you will write C in I.

55
00:04:01,600 --> 00:04:01,860
Okay.

56
00:04:03,110 --> 00:04:06,530
So this thing is printing the test for the output.

57
00:04:06,980 --> 00:04:08,540
And this thing is for input.

58
00:04:10,060 --> 00:04:10,280
OK.

59
00:04:10,330 --> 00:04:11,540
So let's see.

60
00:04:15,830 --> 00:04:18,200
So in DIKO, Spain, we declared a variable.

61
00:04:18,710 --> 00:04:23,630
And then we will take the video for you from user sit in.

62
00:04:24,860 --> 00:04:31,630
And similarly, after declaring a variable G, we will take the value of G.

63
00:04:31,880 --> 00:04:33,200
And potentially use it.

64
00:04:34,040 --> 00:04:34,320
OK.

65
00:04:34,520 --> 00:04:35,240
So that is all.

66
00:04:37,040 --> 00:04:38,270
OK, so let's compile.

67
00:04:38,330 --> 00:04:38,900
And on it.

68
00:04:45,550 --> 00:04:46,970
OK, so my program is running.

69
00:04:47,780 --> 00:04:50,000
But how do I know that my program is ending?

70
00:04:50,930 --> 00:04:54,110
Basically, those truly four lines are not getting printed.

71
00:04:54,860 --> 00:04:57,140
That means my program is not finished yet.

72
00:04:57,830 --> 00:04:59,450
It is still in the execution.

73
00:04:59,870 --> 00:05:01,040
It is still running.

74
00:05:01,880 --> 00:05:03,620
But then why it isn't showing anything.

75
00:05:04,200 --> 00:05:05,780
Why am I black windows empty.

76
00:05:06,500 --> 00:05:08,090
So basically, what is happening here?

77
00:05:09,800 --> 00:05:11,810
My program reached line number eight.

78
00:05:12,770 --> 00:05:13,010
OK.

79
00:05:13,370 --> 00:05:16,340
So my program reached line number eight and it stops.

80
00:05:17,600 --> 00:05:19,430
It is waiting for me to give input.

81
00:05:20,270 --> 00:05:23,990
OK, so let's hear the value of AI is hundred and then enter.

82
00:05:25,490 --> 00:05:30,990
And what happen now is my program reached line number eleven and it stops again.

83
00:05:31,550 --> 00:05:33,790
It is again waiting for me to give input.

84
00:05:34,290 --> 00:05:36,580
Let's to the value of JS 200.

85
00:05:37,310 --> 00:05:42,620
So virtually my output, I will calculate the value of variable K, which is AI plus G.

86
00:05:42,710 --> 00:05:44,140
That is hundred plus two hundred.

87
00:05:44,480 --> 00:05:45,890
And then I am printing key.

88
00:05:46,460 --> 00:05:48,480
So my output should be 300.

89
00:05:49,190 --> 00:05:49,400
Okay.

90
00:05:49,930 --> 00:05:54,560
So presenter and T Android is getting printed.

91
00:05:54,920 --> 00:05:55,690
Salah Golders.

92
00:05:55,730 --> 00:05:56,450
Hundred percent.

93
00:05:56,780 --> 00:05:57,170
Correct.

94
00:05:58,220 --> 00:06:02,060
Okay, so let's take a few more values and let's try to end it again.

95
00:06:05,040 --> 00:06:11,780
OK, so let's say the value of fire is to and the value of J3, some output should be five and five

96
00:06:11,780 --> 00:06:13,500
is getting printed.

97
00:06:17,800 --> 00:06:20,840
OK, so let's make this file a little bit useful as well.

98
00:06:22,210 --> 00:06:22,430
OK.

99
00:06:22,690 --> 00:06:24,370
So here we will also do the same thing.

100
00:06:26,030 --> 00:06:32,230
We're declaring a variable B and we will take the value of B input from the user.

101
00:06:33,940 --> 00:06:40,810
Similarly, I will declare a variable R and then we will take the vilified and bird from the user.

102
00:06:43,720 --> 00:06:49,470
And same goes for te redeclared variability and take input from the user.

103
00:06:50,530 --> 00:06:52,920
OK, so that is all that we have to do.

104
00:06:53,250 --> 00:06:54,870
So let's end our program.

105
00:07:00,180 --> 00:07:02,220
Again, my program reached line number seven.

106
00:07:02,280 --> 00:07:05,880
And it is waiting for me to give input, led the Valley of Peace.

107
00:07:05,910 --> 00:07:08,790
Thousand then press enter.

108
00:07:10,290 --> 00:07:12,520
Now my program reached a line number 10.

109
00:07:12,930 --> 00:07:15,270
And it is again waiting for me to give input.

110
00:07:15,930 --> 00:07:19,770
Later, the value of fieriest 20 press enter.

111
00:07:20,250 --> 00:07:24,810
And now my program reached line number 13 and it's dropped again.

112
00:07:25,200 --> 00:07:27,990
It is waiting for me to give input and let us see.

113
00:07:27,990 --> 00:07:29,750
The value of time is ten.

114
00:07:32,010 --> 00:07:34,410
And now my program will reach line number 15.

115
00:07:34,470 --> 00:07:40,170
It will calculate simple interest based on the values of principle return time and then it will print

116
00:07:40,230 --> 00:07:41,160
simple interest.

117
00:07:42,090 --> 00:07:43,620
OK, so what will be my output?

118
00:07:45,650 --> 00:07:45,860
OK.

119
00:07:45,990 --> 00:07:48,600
So simple interest equals principle.

120
00:07:48,660 --> 00:07:49,560
That is thousand.

121
00:07:50,830 --> 00:07:51,540
And to read.

122
00:07:51,630 --> 00:07:52,500
Which is to a..

123
00:07:52,680 --> 00:07:53,400
In due time.

124
00:07:53,430 --> 00:07:54,180
Which is ten.

125
00:07:54,600 --> 00:07:55,950
Divided by hundred.

126
00:07:59,300 --> 00:08:00,800
OK, so my simple intestines.

127
00:08:02,140 --> 00:08:06,270
2000 and why output should be 2000.

128
00:08:06,520 --> 00:08:15,410
So let's see press enter and 2000 as my simple interest, which is hundred percent correct.

129
00:08:17,810 --> 00:08:18,000
OK.

130
00:08:18,260 --> 00:08:25,030
So now my programs are much more useful compared to what they were before, because now it doesn't find

131
00:08:25,030 --> 00:08:26,740
simple industrial fixed values.

132
00:08:27,130 --> 00:08:31,100
You can give any way loose and it will find simple industrial you OK?

133
00:08:32,430 --> 00:08:32,610
OK.

134
00:08:32,890 --> 00:08:35,440
So now we know how to take in deejay's input.

135
00:08:36,040 --> 00:08:37,720
So let's see someone examples.

136
00:08:39,580 --> 00:08:44,470
Filey, new empty file file, save file.

137
00:08:44,800 --> 00:08:50,500
And then let's say the name of the file is taking.

138
00:08:52,810 --> 00:08:53,510
And put.

139
00:08:56,110 --> 00:08:57,000
Examples.

140
00:09:01,240 --> 00:09:02,410
Not CBP.

141
00:09:10,410 --> 00:09:12,900
Hashing, glued ISTM.

142
00:09:16,560 --> 00:09:20,880
Using namespace SDD semicolon.

143
00:09:22,500 --> 00:09:24,480
Then I am having in domain.

144
00:09:29,860 --> 00:09:31,520
And then I am having done, too.

145
00:09:33,520 --> 00:09:42,520
OK, so first of all, let's take a floating rate losers input so flawed F declared a variable F and

146
00:09:42,520 --> 00:09:46,720
then seen F and then C out.

147
00:09:52,280 --> 00:09:53,180
You entered.

148
00:09:58,280 --> 00:09:59,650
If and then Lane.

149
00:10:02,300 --> 00:10:03,830
OK, so let us on our program.

150
00:10:09,680 --> 00:10:14,870
OK, so my program is running and it reached land number seven and is waiting for me to give input.

151
00:10:16,050 --> 00:10:18,400
Let's say two point three press enter.

152
00:10:19,470 --> 00:10:21,150
So you enter two point three.

153
00:10:21,180 --> 00:10:23,460
So the value of Mary Will Effie's two point three.

154
00:10:27,080 --> 00:10:28,650
Now, let us take input.

155
00:10:29,730 --> 00:10:35,960
That will be Cindy and then see old.

156
00:10:40,890 --> 00:10:41,790
You entered.

157
00:10:48,040 --> 00:10:49,470
The and then and Lane.

158
00:10:53,850 --> 00:10:55,350
OK, so listen again.

159
00:10:59,060 --> 00:11:04,410
The white program is working fine, and my program reached line number seven and is waiting for me to

160
00:11:04,410 --> 00:11:07,740
give input, led to the medley of very well efforts.

161
00:11:07,960 --> 00:11:11,030
One point five seven enter.

162
00:11:11,900 --> 00:11:17,400
And now my program reached line number eleven and is waiting for me to go and for variable.

163
00:11:17,790 --> 00:11:22,440
The letter the I love the is two point zero four.

164
00:11:23,250 --> 00:11:28,230
And so you enter two point zero four, which is the value of the.

165
00:11:30,410 --> 00:11:30,940
Now, the.

166
00:11:32,450 --> 00:11:43,750
Well, now let us learn how to take a correcto as an input gassy c, n, c, c out.

167
00:11:48,500 --> 00:11:49,370
You entered.

168
00:11:53,800 --> 00:11:54,180
See?

169
00:11:54,490 --> 00:11:55,480
And then airline.

170
00:12:00,670 --> 00:12:02,230
OK, so let's on our program.

171
00:12:11,920 --> 00:12:21,400
So the value of F is two point three value of there is two point vun and let's say my character is capital

172
00:12:21,460 --> 00:12:21,690
L.

173
00:12:23,320 --> 00:12:29,320
Okay, so L is getting printed because the value of variable C is an.

174
00:12:32,460 --> 00:12:35,340
OK, so now we know how to take input from the user.

175
00:12:36,020 --> 00:12:36,290
OK.

176
00:12:36,570 --> 00:12:37,920
So that is all for this.

177
00:12:37,920 --> 00:12:38,310
We do.

178
00:12:38,610 --> 00:12:39,060
Thank you.
