Illegal, the left operand has the type 'double'
What's the problem I don't understand what a double


CodePudding user response:
Your second application B does not seem to be defined, B should be defined as type double, the output when changing % d to % lf,First program input function in the scanf \ n take out, just like program 2, the output of the first program is to use % lf