00:01
Okay, this question says, use a four loop to print the number zero from 25 across the screen with a space between each one.
00:09
So let's start with that.
00:11
So for that, we're just literally going to do four i in range 25.
00:20
Nope, sorry, we're going to do 26.
00:23
Print i.
00:25
So there, there.
00:27
So, well, actually, it's not one one.
00:28
So here we have, each is on a new line, but we actually want a space between.
00:32
Each one so we're going to set up a string let's call it question one q1 we're going to make that an empty string and so then we're going to do q1 plus equals stir so we're going to turn into a string i plus space so then once that's done we're going to print q1 so that looks like that next one says use a forward to the numbers from 10 to 1 across the screen with a space between each one so this is a similar thing so let's actually just copy paste this here but we'll call this one q2.
01:08
This one's going to be in range 11.
01:14
Now we're going to do that in range 10 actually and then what we're going to say is q1 plus equals stir 10 minus i and then we're going to that's q2 again.
01:28
That's where i forgot and so that gives us 1098765 4 321 perfect.
01:33
Next is odd numbers from 1 to 40 across the screen with the same thing.
01:39
So we're going to do this again, actually.
01:42
Copy -paste that.
01:43
We'll call this one q3.
01:45
And we want from 0 to 40.
01:49
No, we want 1 to 40.
01:50
So let's do 1 comma 41.
01:53
And we're going to say q3.
01:56
And what we're going to do is we're going to do if i modulo 2 is not equal to 0, then we're going to do.
02:03
This...