What's wrong with this code? float x = 5.;
float x = 5.;
Nothing is wrong with this code.
Declarations do not need semicolons.
x=5 is an invalid float.
Variables can't be declared and initialized in the same state.