Why This Program Shows Error While Initializing With Float Value

Why This Program Shows Error While Initializing With Float Value