00:01
All right, in this video, the concept we're going to look at is a c program that utilizes a while loop.
00:08
And actually, we're going to have two while loops.
00:11
And so we're going to have the user enter a number, and it's going to be an integer.
00:17
And then, so say the number is two, then we're going to loop just one time over the number two, and we're going to print the two two times.
00:29
So if someone enters a three, then we will print the two, two times, and then we'll print the three three times.
00:37
And so we'll follow that pattern.
00:39
If they enter a four, we'll do two twos on one line, three three's on one line, and four fours on the next line.
00:48
And so the first loop loops over each number two, three, four, up to whichever number they have entered.
00:56
And then the second while loop loops over does the printing.
01:02
So it prints the number as many times as its value.
01:06
So it prints a two twice.
01:08
Okay, then we print a blank line and then we go to the next number.
01:13
So we come in, say it's a four.
01:18
We've set a count at one...