00:01
Okay, this one says, write a while loop that prints a, all squares less than n.
00:08
For example, if that is 100, it prints all these.
00:12
B, all positive numbers that are divisible by 10 and less than n.
00:16
This is an example.
00:17
And c, all powers of two less than n.
00:20
For example, if m is 100 print that.
00:23
So let's just make an 100 because that's going to make this easy, because they've given us those examples.
00:28
So let's say while n less than 100.
00:34
And that's what we're going to do.
00:36
So if we don't want any equals, we're going to say, we want, quick, right.
00:49
We want squares less than n.
00:51
So we're going to do i squared.
00:54
So let's start with i equals to zero.
01:02
And what we're going to do is we're going to say, if i squared less than 100, right? and then it also wants us to print all positive numbers that are divisible by 10 and less than.
01:30
So we'll say if i.
01:36
Modulo 10 equals 0 and i less than...