00:01
All right, this one we need to calculate a sum of fractions.
00:04
We've got 1 over 3 plus 3 over 5 plus 5 over 7, etc.
00:10
And so we're going to start off with our variable.
00:13
I'm just going to call it answer, set that equals to 0.
00:18
And i'll want it to be a floating point.
00:20
And so i'll let it be equal to 0 .0.
00:24
And then i'm just going to jump right into a for loop.
00:27
I'm going to use the value x in range.
00:33
And if you look at that set of top numbers, the top numbers go from one to 97.
00:40
And if i want 97, i have to put 98 because it always subtracts one.
00:45
But then i need to increment by two.
00:48
And so that's going to go one and then three and then five all the way to 97...