00:01
Okay, for this one we want to look at a bunch of integers using a while loop and we want to say that if we cube a number so we're going to say x raised to the third power and as and what we want to do is want to find the biggest number where that is now hold on it was at 2000 get rid of that 12 ,000 so what what integer cubed is the biggest integer? i what's the biggest integer that if we cube it, we get less than 12 ,000.
00:41
So we do that test right there.
00:43
And then we'll keep track of the integer value by incrementing it, which means up here, we need to start with whatever integer we're starting with, no reason to not start with one.
00:58
And so this is going to run the loop over and over and over again.
01:01
And if we just print this right here, we're going to get a slight error.
01:06
I want to say the answer is plus and then convert x to a string.
01:19
And if we run it, we get the answer is 23.
01:23
And if you check with math, 23 does come in above 12 ,000, but so does 22.
01:29
22 squared...