1
00:00:02,070 --> 00:00:04,370
Hey, guys, welcome back to the Close.

2
00:00:05,160 --> 00:00:08,210
So in this session, we will solve one interesting problem.

3
00:00:08,790 --> 00:00:16,920
So our problem is given and given and we have to print Bourdon, for example, if any, equals five.

4
00:00:17,040 --> 00:00:18,960
My president will look something like this.

5
00:00:30,060 --> 00:00:36,120
OK, so we're given and we have to print Paddon, for example, of the value of N is to my burden will

6
00:00:36,120 --> 00:00:36,390
be.

7
00:00:37,570 --> 00:00:39,610
This similarly, the value of honesty.

8
00:00:39,700 --> 00:00:43,510
My pattern will be something like this.

9
00:00:45,070 --> 00:00:48,470
So we have all this all this problem and flowcharts and pseudocode.

10
00:00:49,120 --> 00:00:51,040
So we will solve this problem very quickly.

11
00:00:52,060 --> 00:00:58,360
So you can see here the value of phase one, the value of phase two, the value of ice t, the value

12
00:00:58,360 --> 00:01:00,550
of ice for the value of phase five.

13
00:01:01,150 --> 00:01:05,320
So first of all, we need a loop and this loop will then end times.

14
00:01:06,310 --> 00:01:09,160
So we need a loop to run and times.

15
00:01:09,700 --> 00:01:18,760
So I equals one while I less than Noriko's to N and I bless.

16
00:01:18,760 --> 00:01:19,120
Bless.

17
00:01:20,350 --> 00:01:21,400
So why, why.

18
00:01:21,400 --> 00:01:22,930
We need a loop that ran and times.

19
00:01:22,960 --> 00:01:24,400
Because we have to print Androes.

20
00:01:24,880 --> 00:01:27,690
So for N equals five I am printing faithful's.

21
00:01:28,600 --> 00:01:37,290
So this loop will run and times and each time what I will do I will write the logic for printing Wendle.

22
00:01:38,580 --> 00:01:40,030
What I should say for printing.

23
00:01:40,120 --> 00:01:43,240
I Yertle Logic for printing.

24
00:01:43,330 --> 00:01:44,140
I get it all.

25
00:01:44,680 --> 00:01:45,940
And what is the logic for printing.

26
00:01:45,940 --> 00:01:48,670
I throw the value of AI is three.

27
00:01:49,240 --> 00:01:56,080
I will print three stars and only if I use four I am printing four stars and so on.

28
00:01:56,470 --> 00:01:57,660
So logic is very simple.

29
00:01:57,760 --> 00:02:03,640
I need a loop and this loop children eight times and each time this loop is running I will print a.

30
00:02:04,450 --> 00:02:13,470
So let's say I am taking a variable count to count equals one vile count as less than an hour equals

31
00:02:13,500 --> 00:02:13,790
two.

32
00:02:13,990 --> 00:02:18,940
I because we have to run the loop eight times and count plus plus.

33
00:02:19,030 --> 00:02:22,430
So this loop will run eight times and each time this loop is running.

34
00:02:22,480 --> 00:02:25,040
What I'm going to do, I will simply print.

35
00:02:25,680 --> 00:02:26,140
I start.

36
00:02:27,310 --> 00:02:29,170
So this is all that we have to do.

37
00:02:29,590 --> 00:02:30,880
So let us compile all this.

38
00:02:31,090 --> 00:02:31,960
So what we will do.

39
00:02:33,930 --> 00:02:45,300
Well, look, outer loop for printing Androes so vile vilely, I use less than articles to n and here

40
00:02:45,570 --> 00:02:46,620
I plus plus.

41
00:02:47,220 --> 00:02:52,650
So this outer loops for branding Androes now inner look for printing a year through.

42
00:02:53,500 --> 00:02:54,810
Okay, so end.

43
00:02:56,810 --> 00:02:57,840
Count equals one.

44
00:02:59,920 --> 00:03:00,370
While.

45
00:03:01,730 --> 00:03:04,370
Ground is less than articles to a.

46
00:03:06,840 --> 00:03:09,030
Count plus plus.

47
00:03:09,060 --> 00:03:13,890
Now this inner loop will run eight times, and each time this loop is running, I will print.

48
00:03:14,730 --> 00:03:20,250
I started to see out start and after printing when the entire room.

49
00:03:20,280 --> 00:03:23,370
I have to go to next to sushi out and line.

50
00:03:24,450 --> 00:03:27,620
So this is the computer code that we have to write.

51
00:03:27,870 --> 00:03:30,180
Okay, so let's write it.

52
00:03:31,560 --> 00:03:33,690
So that doesn't name this file as.

53
00:03:36,430 --> 00:03:37,560
Start by then.

54
00:03:40,040 --> 00:03:45,260
Start Petmin, not CBB.

55
00:03:55,640 --> 00:03:56,660
So what do we have to do?

56
00:03:57,980 --> 00:04:02,450
I will take an input from the user.

57
00:04:02,900 --> 00:04:07,940
Now I need a loop and this loop should run eight times and times.

58
00:04:08,930 --> 00:04:16,220
So in cycles, one wild I is less than or equal to an.

59
00:04:18,580 --> 00:04:19,440
A plus plus.

60
00:04:20,020 --> 00:04:22,720
So this loop is going to run and times.

61
00:04:23,560 --> 00:04:30,320
And inside this loop, I am writing the logic for printing I yet through and the logic is very simple.

62
00:04:30,370 --> 00:04:31,880
We have to print Istar.

63
00:04:32,110 --> 00:04:35,680
So this loop will run a number of times.

64
00:04:35,740 --> 00:04:39,570
So called less than articles to a hand count.

65
00:04:40,630 --> 00:04:40,900
Plus.

66
00:04:40,900 --> 00:04:41,290
Plus.

67
00:04:42,220 --> 00:04:45,310
Now what don't want to do is I will print start here.

68
00:04:45,350 --> 00:04:46,060
So see out.

69
00:04:48,520 --> 00:04:50,010
We have to print stars.

70
00:04:52,630 --> 00:04:58,270
And after printing one and Baduel I have to go do next to you for going to next plane.

71
00:04:59,020 --> 00:05:00,880
I will write C out and learn.

72
00:05:01,450 --> 00:05:03,400
So this is the complete logic.

73
00:05:03,520 --> 00:05:04,590
So let us right now.

74
00:05:04,780 --> 00:05:06,340
Let us test our program.

75
00:05:09,760 --> 00:05:14,100
Led to the really off and his five some outproduce, correct?

76
00:05:15,410 --> 00:05:18,590
Let's say the value of an is.

77
00:05:20,600 --> 00:05:21,140
Fifteen.

78
00:05:23,140 --> 00:05:25,160
So now Edward is correct.

79
00:05:29,000 --> 00:05:30,350
So this is it for this video.

80
00:05:30,470 --> 00:05:33,050
If you have any doubt, feel free to ask.

81
00:05:33,950 --> 00:05:34,240
OK.

82
00:05:35,180 --> 00:05:35,660
Thank you.
