00:02
Okay, in this question we will take two integer and make the first integer increase by 10 until it's smaller while it's smaller than the second integer.
00:14
So first thing we will need is two integers.
00:19
I will have my first variable, first integer, and as an input, i will ask, please enter integer 1 with a backslash n and and we will open up in it input and here i want this to be an integer so i can make sure it is that by using the it so it will comfort whatever i write as an integer i will then i reuse this line so i will have i wrote first second but i wanted to write first integer and here on the bottom i will have second integer and here i will ask please enter integer 2.
01:09
So i will run this program, please enter integer 1.
01:13
So for example minus 15, integer 2, 30.
01:19
So that's a good start but we're not doing anything with them yet.
01:28
So first we need to make sure that the first integer is smaller or can't be less.
01:38
But it can be equal.
01:40
So we need to make sure that we can only run our program if the second integer is greater or equal to the first integer.
01:59
If we cannot meet this, then we'll simply print a message saying cannot run the program because and then i will write my first integer as a string i forgot to write plus here plus and plus i will continue my message is smaller than second integer so in here i will simply print an empty string for now i just want to show you that this will work properly.
02:48
Oh, it doesn't work properly because i forgot to write plus.
02:53
Now it will run better.
02:54
So please, let's say i enter 65 and i enter 2.
03:00
Cannot run the program because 65 is smaller than 2.
03:04
That's a good start.
03:07
Now if the second integer is greater than the first one, what we will have is while first integer is lesser than second integer then we will have we want to print first integer as a string and we want to separate them with a just a regular space like this and we want to have and then we want to increase first integer by ten so let's see how this does with the two numbers given in your example.
04:05
So if i write minus 15 and 30, then i have minus 15 plus 10, it's minus 5, plus 5 is plus 10 is 15, plus 10 is 25, so we do not want to output that one.
04:26
Now the problem i have here is that they're not print on a single line.
04:32
They're print on multiple line.
04:35
So in order to print them on a single line, i can have an array...