00:01
Going to be creating a program that will stop when a user enters a negative number.
00:09
So to get started, i'm going to go over what i've written line by line.
00:17
So here i've created a wall loop and i've set the condition as true.
00:23
So while the number or as long as the number we enter, is above zero, then this will remain true.
00:42
So we ask the user to enter first number, and we also convert the user input to an integer.
00:50
Now we're going to check to see that whether the number of the user has entered a negative number.
00:59
So we write a statement saying if the number is less than or equal to zero, we'll print a message so that we know that they'll be presented, and then we use the brick.
01:16
And then we use else if the number, if the user has entered a number that is created in the data, we'll continue to ask them to give us the second and third number, as well as converting these to integers.
01:32
Then we're going to get the average, which is the sum divided by the total.
01:39
And then i here, i formatted it to only two places out of the decimal.
01:47
You don't have to do this.
01:49
You can simply leave it...