1
00:00:02,070 --> 00:00:03,750
Hey, guys, what's up?

2
00:00:04,200 --> 00:00:12,540
So in the last class, we learned if if conditions now in this class, we will solve few problems to

3
00:00:12,570 --> 00:00:14,880
get a better understanding how it works.

4
00:00:15,450 --> 00:00:17,190
So the problem statement is very simple.

5
00:00:17,250 --> 00:00:20,990
We will be given a number and use it will give us a number.

6
00:00:21,000 --> 00:00:25,530
And and I have got a loser whether that number is art or even.

7
00:00:26,950 --> 00:00:28,610
Again, so the logic is very simple.

8
00:00:29,030 --> 00:00:36,920
I will check if no on dividing by two gives Rimando zero net means.

9
00:00:36,950 --> 00:00:39,050
My number is even.

10
00:00:41,430 --> 00:00:41,700
OK.

11
00:00:42,570 --> 00:00:46,940
It is my number is ared, simple logic.

12
00:00:48,940 --> 00:00:49,570
So let's see.

13
00:00:53,160 --> 00:01:01,080
So what I'm going to do is I'm making a variable n c in and if.

14
00:01:03,300 --> 00:01:05,820
No mard to.

15
00:01:06,990 --> 00:01:10,730
Is giving me zero net means my number is even.

16
00:01:11,400 --> 00:01:12,180
So see out.

17
00:01:15,500 --> 00:01:15,930
Even.

18
00:01:19,260 --> 00:01:21,240
Otherwise, what I'm gonna do is.

19
00:01:26,750 --> 00:01:30,460
And my number is ARED.

20
00:01:36,890 --> 00:01:38,240
As and Barry's ARD.

21
00:01:44,520 --> 00:01:45,760
OK, so let's see.

22
00:01:47,850 --> 00:01:49,500
Hesh in blue.

23
00:01:54,530 --> 00:01:55,970
So let's say my number is five.

24
00:01:56,510 --> 00:01:57,770
So five is our number.

25
00:02:00,490 --> 00:02:02,560
And let's say my number is forward.

26
00:02:03,140 --> 00:02:05,160
So it is even I'll go.

27
00:02:05,350 --> 00:02:07,910
So this problem was very easy.

28
00:02:09,280 --> 00:02:14,850
Let's do something more much more interesting than this silly problem.

29
00:02:19,120 --> 00:02:24,800
So you have to tell me the output, let's say.

30
00:02:24,940 --> 00:02:28,900
And it was when.

31
00:02:32,300 --> 00:02:36,180
And X equals a blessed place.

32
00:02:37,130 --> 00:02:41,990
And similarly, and Y equals blessed blessing.

33
00:02:44,060 --> 00:02:47,870
And now I am branding C out X.

34
00:02:55,860 --> 00:02:56,620
See outtakes.

35
00:02:56,710 --> 00:02:57,610
See, I would weigh.

36
00:03:00,810 --> 00:03:01,620
And see you out.

37
00:03:03,870 --> 00:03:09,540
OK, so we have to tell me what will be my output if I run this myself called.

38
00:03:11,050 --> 00:03:12,040
You can take your time.

39
00:03:13,130 --> 00:03:14,100
So learning it.

40
00:03:16,240 --> 00:03:18,680
So I'm out two days one, the three.

41
00:03:19,830 --> 00:03:27,750
The value of X, the value of X is when VI is three and A's three.

42
00:03:29,390 --> 00:03:30,620
If you got the same output.

43
00:03:30,860 --> 00:03:31,710
Congratulations.

44
00:03:31,730 --> 00:03:33,080
Your concepts are strong.

45
00:03:33,900 --> 00:03:34,530
Otherwise.

46
00:03:36,240 --> 00:03:39,990
I'm telling you how this how these values came.

47
00:03:42,210 --> 00:03:42,690
So.

48
00:03:45,470 --> 00:03:47,420
And it was one.

49
00:03:50,080 --> 00:03:58,560
And X equals a plus plus and Y equals plus plus a.

50
00:04:02,310 --> 00:04:05,700
So no problem is when initially.

51
00:04:06,430 --> 00:04:07,450
Now at this line.

52
00:04:07,620 --> 00:04:15,930
This is posted decrement, hence first aid will be assigned so that when Leo fixes when now it will

53
00:04:15,930 --> 00:04:16,890
be implemented.

54
00:04:16,950 --> 00:04:21,180
So the value phase to now focus on this line.

55
00:04:21,510 --> 00:04:22,760
This is bringing Kliment.

56
00:04:23,220 --> 00:04:23,910
So first.

57
00:04:25,120 --> 00:04:26,310
Will be incremented.

58
00:04:26,420 --> 00:04:31,070
So the radio phase three and now it will be assigned.

59
00:04:31,580 --> 00:04:33,640
So the value of Y is three.

60
00:04:34,160 --> 00:04:40,380
So orderly my output X is when Y is three A's three.

61
00:04:40,610 --> 00:04:41,960
Some output is one.

62
00:04:42,110 --> 00:04:42,890
Three, three.

63
00:04:46,490 --> 00:04:47,370
One, three, three.

64
00:04:47,750 --> 00:04:48,000
OK.

65
00:04:49,450 --> 00:04:52,900
So let's do let's do something even more interesting.

66
00:05:02,480 --> 00:05:03,170
Let's say

67
00:05:05,800 --> 00:05:16,340
initially equals zero, and now I am checking if sorry, if a plus plus if this condition is true.

68
00:05:18,010 --> 00:05:18,700
See out.

69
00:05:19,870 --> 00:05:20,260
Hello.

70
00:05:23,610 --> 00:05:23,850
OK.

71
00:05:24,320 --> 00:05:32,150
And if this condition is followers see out, let's say, by.

72
00:05:35,840 --> 00:05:37,430
OK, so this is my call.

73
00:05:38,260 --> 00:05:40,930
So you ever tell me what will be my output?

74
00:05:42,000 --> 00:05:44,670
You can post a video if you want to take some time.

75
00:05:45,990 --> 00:05:47,350
So let let's send it.

76
00:05:50,780 --> 00:05:54,470
So my output is by as expected.

77
00:05:55,430 --> 00:05:56,660
Why am I output is my.

78
00:06:01,060 --> 00:06:01,540
So.

79
00:06:02,620 --> 00:06:03,310
A zero.

80
00:06:04,600 --> 00:06:04,860
OK.

81
00:06:05,520 --> 00:06:07,470
And in this current, I am writing gaudier.

82
00:06:07,530 --> 00:06:12,000
So if a plus plus now focus on this.

83
00:06:13,200 --> 00:06:18,660
This is post increment that means first evil be checked.

84
00:06:18,930 --> 00:06:23,110
Then he will be implemented and the value of eight zero zero means falls.

85
00:06:23,370 --> 00:06:25,310
So this condition is false.

86
00:06:25,380 --> 00:06:27,690
And the valley of evil become when.

87
00:06:28,970 --> 00:06:34,780
So if this condition is false, I will execute the code written in as blog.

88
00:06:35,590 --> 00:06:38,320
That's why I am out for this coming out booby by.

89
00:06:39,960 --> 00:06:40,210
OK.

90
00:06:40,900 --> 00:06:42,880
So that is the reason my report was by.

91
00:06:44,120 --> 00:06:46,330
Now, tell me what will remain.

92
00:06:46,470 --> 00:06:47,840
But if I arrived.

93
00:06:49,580 --> 00:06:54,680
OK, so let's E-Plus bless and let us bring the value of it also.

94
00:06:55,540 --> 00:06:56,350
So we'll see you out.

95
00:07:00,830 --> 00:07:03,650
Enderly and see out.

96
00:07:07,480 --> 00:07:14,440
And although there will not be any defense because the value of a in both cases is going to be when

97
00:07:14,440 --> 00:07:14,800
only.

98
00:07:18,030 --> 00:07:18,830
OK, so bye.

99
00:07:18,950 --> 00:07:19,430
And when?

100
00:07:20,770 --> 00:07:22,000
Because is incremented.

101
00:07:23,740 --> 00:07:25,870
Now, what will happen if I make it?

102
00:07:27,890 --> 00:07:31,100
Plus plus a three increment.

103
00:07:32,410 --> 00:07:32,660
Okay.

104
00:07:33,870 --> 00:07:35,850
So let's see where it is going to happen.

105
00:07:37,500 --> 00:07:47,100
So the value of is initially zero now and F blog I am having plus plus A since it is pre increment first,

106
00:07:47,270 --> 00:07:48,780
it will be incremented.

107
00:07:49,140 --> 00:07:53,580
So the value of AVL become when then this condition will be checked.

108
00:07:54,240 --> 00:07:55,230
So the value of AIZMAN.

109
00:07:55,920 --> 00:07:58,360
That means this condition is true.

110
00:07:58,680 --> 00:08:03,900
Since this condition is true, this will be Hmoud for some output will be hello.

111
00:08:04,440 --> 00:08:07,380
And the value of phase one of this is not important.

112
00:08:07,500 --> 00:08:09,090
This is why this was important.

113
00:08:13,460 --> 00:08:16,220
So now, Edward, is Halloween, when, hello and when?

114
00:08:16,730 --> 00:08:16,950
OK.

115
00:08:17,790 --> 00:08:18,210
Simple.

116
00:08:20,780 --> 00:08:21,230
Thank you.
