All right, now let's move ahead, so we were running it till 4:00 and it was giving the output one,
two, three, four.
Now, we wanted to bring this program to give an output from one to ten.
OK, so for that, what we will do will put in here, OK?
And we will just run it, because if you're putting four, it was running till four.
If you put ten, it will run till 10.
OK, so I'll just run it.
And you can see that it is printing all the numbers from one to 10, so it is one of the exercises that
we have just done.
It is known as printing.
Faustin.
Natural numbers.
OK, so we have just printed Foreston natural numbers, so naturally numbers stack from one, so we
have printed all the numbers from one to ten.
OK, so this is one of the exercises that we wanted to do.
Now let's move ahead and let's do a very small change.
So what is happening is whenever we are printing it is coming in new lines.
OK, so if we want to make it come in one single line, we have to make a very small change.
And this thing you have to remember that after this print, come on, we have to put a comma and then
we have to put end and then we have to write equal to and we have to put quotation marks.
OK, so if you put this and now if you run this.
So you can see all the numbers are coming in the one line, but they don't have any gap between them.
So what we will do is we will just put a small gap and then we will save it and then we will run it
again.
And here you can see, no, they're coming with a gap.
OK, so whatever you will, right between this quotation marks, that thing will happen.
So if you put a comma and if you run it.
So you can see now all the numbers are separated by a comma, so whatever you will put here, that will
be replaced between the two numbers.
OK, so we will keep this comma here.
No, if you tried this more like we wanted to 2010.
So we have written 10.
If you want to print 20, what?
We will write 20.
And if you run it.
You can see the sprinting till 20, so Hertel, whatever number you want to print, you will have to
write that number.
OK, now we have one exercise here.
What do you have to do is that you have to build a program so that you will take an input from the user.
The user will enter what number you have to print all the numbers, OK?
And then you have to execute that program, for example, if user in 15.
So it should print all the numbers from one to 15.
OK, so you have to build a user defined program and you have to print all the natural numbers, build
back number.
Which user has put.
OK, so you just tried the exercise and we'll see in the next lecture.
Thank you.