I'm learning how to program, and I'm doing data type exercises. I'm supposed to find errors in the code, and here I am:
9.- float f1 = 13.5;
10.- float f2 = 8f;
I really have a bit of a mess, because I do not know if the failure is that every% float
carries a f
after the value as in the line of code 10, or that really should not carry that f
because we do not have any variable that is called f
, but f1
, and that f
would mean: 8*f.