Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C language programs help to understand how mistakes are corrected. Error c2660: "change": function does not accept 1 parameter # include.
C language programs help to understand how mistakes are corrected. Error c2660: "change": function does not accept 1 parameter # include.
Classmate, I want to say that your program is a mess. There is only one real parameter, but there are two formal parameters. Your change function is a floating-point number and int is an integer. Where does the final return0 return to? Classmate, you should read this book in C language. There are many mistakes in your program.

# contains "stdio.h"

Floating point change (integer f)

{

Floating c;

c = 5 *(F-32)/9;

Return to c;

}

int main()

{

int n,m,I;

Floating c;

scanf("%d %d ",n,m);

for(I = n; I<= m;; i++)

{

C = change (i);

printf("%4d% 10.2f ",I,c);

}

}