Now, problem number 12 is a lot simpler than problem number 11 in this case, we have to divide the
numbers first as integers and then a floating point numbers just to see the difference between dividing
numbers with hole number division and dividing numbers with, well, real number division.
So in one case, we use an integer, in the other case, we use a floating point number.
So let me show you how to do this for this exercise, we actually don't need to create any variables,
although you can if you want.
But since I want to show you something a bit more different, I'll use this chance to do it, so I'll
directly print.
13 divided by three lights, so this will evaluate the expression as whole numbers because they don't
have any fractional parts.
Chancellor will calculate 13 divided by three as whole numbers, and if we now run this program, we
get poorer as a result and we don't have any fractional work.
Well, if we want to use fractional division now, well, one way is to create two floating point numbers
and divide them.
The other way is to just.
Change these numbers to thirteen point zero and three point zero, why?
Because whenever you use a value written like this, although it represents the same value, the data
which will be inferred will be different because in this case, the data they've been for is a whole
number, so it will be one of the integers.
While in this case, since we do have a fractional part, although it's zero, the data type which will
infer is a floating point number and that can be sold 32 or float 64 anyway.
So let's run this program now.
We'll see how it goes and we get four one three three three in the end.
Based on the precedent of this number, I can guess that this is a float 64 number, actually.
OK, so that's how you can solve this problem without instantiating any variables that take away values
you write in your program also have a tape, and that tape is inferred based on the way you write that
value.
If you write a number like this without any fractional part, the data type which will be inferred for
this value is an integer.
But if you write it with a fractional part like this, even if it's zero, the data that is a floating
point number, that's everything for problem number 12th.