All definitions: double a = 22int I = 8;; , why am I =! Am I right?
Because the remainder operator (%) takes the remainder of an integer variable (or constant), and your variable A is of double type, compilation will definitely go wrong. And we know that plastic can be automatically converted into float or double, but the other way around, so if we want to use the above statement, we need to strengthen the type conversion, that is: i=(int)a% 1 1.