1
00:00:01,720 --> 00:00:03,400
Hey, guys, what's up?

2
00:00:04,120 --> 00:00:10,400
So in this video and this session today, we are going to solve industrial problems without problem.

3
00:00:10,400 --> 00:00:16,660
Statement is given and we have to print all the numbers.

4
00:00:19,060 --> 00:00:23,790
We have to print all numbers from one, two.

5
00:00:24,880 --> 00:00:30,670
And so if you remember, we have all this all this question and flowcharts and pseudocode.

6
00:00:31,540 --> 00:00:34,660
But today we are going to write its actual working code.

7
00:00:35,480 --> 00:00:35,640
OK.

8
00:00:35,770 --> 00:00:37,150
So the problem is very easy.

9
00:00:37,660 --> 00:00:43,310
So use it will give us a number n and we have to print all the numbers from one to.

10
00:00:43,900 --> 00:00:46,030
For example, add to the value of N history.

11
00:00:46,330 --> 00:00:50,730
So my output should be one, two, three, similar to the value of.

12
00:00:50,860 --> 00:00:51,970
And is six.

13
00:00:52,060 --> 00:00:56,440
Some output should be one, two, three, four, five and six.

14
00:00:57,190 --> 00:00:57,440
OK.

15
00:00:57,820 --> 00:00:58,720
So this is the problem.

16
00:00:59,650 --> 00:01:00,820
Now how we can solve it.

17
00:01:01,180 --> 00:01:02,590
So the solution is very easy.

18
00:01:03,100 --> 00:01:04,150
So what we will do.

19
00:01:04,300 --> 00:01:10,570
We will run a loop and this loop will run and times and each time.

20
00:01:10,600 --> 00:01:11,680
And this loop is running.

21
00:01:11,770 --> 00:01:13,350
I will print a number.

22
00:01:14,080 --> 00:01:14,290
OK.

23
00:01:14,440 --> 00:01:16,130
Let's say the number is I.

24
00:01:16,510 --> 00:01:17,770
So I will print a number.

25
00:01:17,820 --> 00:01:20,140
I and I will increase its value.

26
00:01:20,620 --> 00:01:22,110
So I will do I plus.

27
00:01:22,110 --> 00:01:22,350
Plus.

28
00:01:22,450 --> 00:01:24,610
So that next number get printed.

29
00:01:24,760 --> 00:01:26,710
And so the next number get printed.

30
00:01:28,030 --> 00:01:30,910
OK, so a court will look something like this.

31
00:01:31,390 --> 00:01:38,590
So first of all, I have to run a loop and times so I equals one when I.

32
00:01:38,740 --> 00:01:40,190
Less than articles to end.

33
00:01:41,170 --> 00:01:43,910
And here I am having a placeless.

34
00:01:44,710 --> 00:01:46,060
So with the help of these three.

35
00:01:46,150 --> 00:01:51,010
This loop will run and times and each time this loop is running, I have to print a number.

36
00:01:51,490 --> 00:01:54,250
And that number is I only.

37
00:01:57,210 --> 00:01:57,470
OK.

38
00:01:58,500 --> 00:02:00,210
So let's see how it works.

39
00:02:02,710 --> 00:02:04,320
So I've already made a file.

40
00:02:04,510 --> 00:02:06,550
Bring the numbers, dart, CPB.

41
00:02:17,100 --> 00:02:20,790
Now, what I have to do, I will take a number and as input.

42
00:02:22,800 --> 00:02:24,880
So, yes, they will give us the value of an.

43
00:02:26,130 --> 00:02:29,970
And I have to run this loop and times so I equals one.

44
00:02:33,940 --> 00:02:39,630
While I is less than articles to n sorry, Smolan.

45
00:02:42,980 --> 00:02:45,580
And I plus, plus, plus, plus.

46
00:02:46,160 --> 00:02:51,770
So this loop will run and times and each time this loop is running, I will.

47
00:02:51,770 --> 00:02:52,640
Brent I.

48
00:02:55,820 --> 00:02:57,860
So this is all that we have to do.

49
00:03:02,030 --> 00:03:02,540
Simple.

50
00:03:02,960 --> 00:03:04,510
So let's test our program.

51
00:03:09,980 --> 00:03:12,060
Let's say the value of an is food.

52
00:03:13,060 --> 00:03:16,040
So one, two, three, four is my output.

53
00:03:17,620 --> 00:03:28,110
Let's say the value of and is dwil, so output is starting from one day to Shalva quarters.

54
00:03:28,270 --> 00:03:30,000
Hundred percent, right.

55
00:03:30,550 --> 00:03:32,440
Now let's see how it is working.

56
00:03:34,750 --> 00:03:36,320
So what is happening here?

57
00:03:40,270 --> 00:03:42,940
So suppose the value of an is three.

58
00:03:43,510 --> 00:03:45,690
So we will test our program for nine equals three.

59
00:03:46,090 --> 00:03:50,020
So I equals one initially and let's say, hey is my output output.

60
00:03:52,180 --> 00:03:53,320
So I equals one.

61
00:03:53,950 --> 00:03:54,820
I am writing here.

62
00:03:54,850 --> 00:03:55,630
I question.

63
00:03:55,990 --> 00:03:58,890
Now take the condition is one less ten articles.

64
00:03:58,890 --> 00:03:59,380
Two, three.

65
00:03:59,620 --> 00:04:00,730
Yes, the condition is true.

66
00:04:00,760 --> 00:04:06,190
I will go inside the loop ceo I, I will print when I plus plus.

67
00:04:06,750 --> 00:04:10,180
So the new Aliev I is to now check the condition.

68
00:04:10,180 --> 00:04:14,040
I mean is to is to less than hourly.

69
00:04:14,080 --> 00:04:14,770
Close to three.

70
00:04:14,890 --> 00:04:15,160
Yes.

71
00:04:15,190 --> 00:04:20,860
The condition is to print a one two and now increase the value.

72
00:04:20,870 --> 00:04:21,970
If I buy was a new.

73
00:04:21,970 --> 00:04:23,680
Well Lo Fi is three.

74
00:04:24,830 --> 00:04:27,330
OK, so now you will check the condition again.

75
00:04:27,470 --> 00:04:29,820
Is three less than Ahlquist three?

76
00:04:30,200 --> 00:04:32,560
Yes, the condition is to see out eye.

77
00:04:33,220 --> 00:04:36,740
So one, two, three, is my output non visible if I buy one.

78
00:04:37,100 --> 00:04:38,810
So a new Aliev, I will become.

79
00:04:38,870 --> 00:04:39,260
Forward.

80
00:04:39,770 --> 00:04:40,880
Now check the condition.

81
00:04:41,420 --> 00:04:43,640
So is four less than or close to three?

82
00:04:43,700 --> 00:04:45,230
No, the condition is false.

83
00:04:45,380 --> 00:04:46,400
You will come out of the loop.

84
00:04:46,460 --> 00:04:48,530
You will reach at this line.

85
00:04:49,100 --> 00:04:50,210
And this is my output.

86
00:04:50,570 --> 00:04:51,410
One, two and three.

87
00:04:51,410 --> 00:04:52,430
Which is hundred percent.

88
00:04:53,150 --> 00:04:53,480
Correct.

89
00:04:54,480 --> 00:04:54,720
OK.

90
00:04:56,650 --> 00:05:00,460
So the thing that we have done is called Brian.

91
00:05:02,440 --> 00:05:05,590
Brian in your program.

92
00:05:07,810 --> 00:05:09,790
So what is the meaning of Brian?

93
00:05:10,390 --> 00:05:11,900
Brian means what do you do?

94
00:05:11,920 --> 00:05:14,290
You take you take a value.

95
00:05:14,500 --> 00:05:15,370
You take input.

96
00:05:15,520 --> 00:05:17,380
And you run your record manually.

97
00:05:19,870 --> 00:05:22,700
You run your code manually on pen and paper.

98
00:05:23,710 --> 00:05:29,590
With the help of pen and paper, you run your code manually and try to figure out how all these things

99
00:05:29,740 --> 00:05:30,340
are working.

100
00:05:31,180 --> 00:05:32,230
So this is called Diren.

101
00:05:32,330 --> 00:05:33,530
Byron is very important.

102
00:05:33,550 --> 00:05:37,660
For example, if you have written code and output is coming out to be wrong.

103
00:05:38,020 --> 00:05:38,740
So what do you do?

104
00:05:38,740 --> 00:05:45,910
You will take a value as input and you will run your code manually to see where the things went wrong.

105
00:05:46,760 --> 00:05:47,040
Okay.

106
00:05:47,410 --> 00:05:48,460
So what really we're doing?

107
00:05:48,520 --> 00:05:53,740
We will be writing code and then we will drive in our program for certain and put.

108
00:05:55,430 --> 00:05:57,350
OK, so this problem was very easy.

109
00:05:58,920 --> 00:06:01,140
And next, we do we will solve that problem.

110
00:06:01,860 --> 00:06:02,340
Thank you.
