00:01
Hello, welcome to this lesson.
00:02
In this lesson, we will write a javaprogram that draws a short triangle.
00:08
So here, the triangle will go 4 to the height, right? we'll have x, x, x, x, 4.
00:18
Then we'd have 7.
00:22
The longest x would be 7, right? so it reduces until it gets to this height, right? so let's have them printed.
00:34
So system .out .print.
00:36
We're printing onto the new line.
00:41
And this time, let's have 1x.
00:45
So we skip two spaces.
00:49
We have 1, 2.
00:51
Then we have an x here.
00:54
We have another x.
00:56
That goes to the middle and x that goes to the side.
01:04
Then again, let's have a printout to the screen again.
01:08
So system .out .printline.
01:11
So here, let's give it one space.
01:16
Then we have 1, x, 1, 2...