#include <stdio.h>
int CF(int C);
int FC(int F);
int main(){
printf("Fahrenheit equivalents of Celsius temperature\n");
printf("Celsius \t Fahrenheit \n");
for (x=0;x<=100;x++);

printf("Celsius equivalents of Fahrenheit temperature\n");
printf("Fahrenheit \t Celsius \n");
for (x=32;x<=212;x++);

erm,still got 2 problem.1st,i need to put in the formula,right?where and how should i put in.2nd,is about the integer x.i also need to add x into function main right?sigh,i am newbie.a lot of basic things still dont understand.

#include <stdio.h>
int CF(int C);
int FC(int F);
int main (){
printf("Fahrenheit equivalents of Celsius temperature\n");
printf("Celsius\t\tFahrenheit\n");
for (x=0;x<=100;x++){
printf("%d\t%d\n",x,CF(x));
C = (F - 32) * (5 / 9);
}
printf("Celsius equivalents of Fahrenheit temperature\n");
printf("Fahrenheit\tCelsius\n");
for (x=32;x<=212;x++){
printf("%d\t%d\n",x,FC(x));
F = (C * 9 / 5) + 32;
}
return 0;
}

Error E2451 ass22.c 5: Undefined symbol 'C' in function main
Error E2451 ass22.c 5: Undefined symbol 'F' in function main
Error E2451 ass22.c 10: Undefined symbol 'x' in function main

#include <stdio.h>
int CF(int C);
int FC(int F);
int main (){
int x;
printf("Fahrenheit equivalents C=(F-32)*(5/9)\n");
printf("Celsius\t\tFahrenheit\n");
for (x=0;x<=100;x++){
printf("%d\t%d\n",x,CF(x));
}
printf("Celsius equivalents F=(C*9/5)+32;\n");
printf("Fahrenheit\tCelsius\n");
for (x=32;x<=212;x++){
printf("%d\t%d\n",x,FC(x));
}
return 0;
}

i still cant solve it.help.these r the thing i got now.

ya,i also got notice about those 2 but how to defined?defined as what?this thing really drop me crazy.now here already 3.45am.i nd go to sleep.2moro still got class.sigh.

Thanks a lot,guys.I manage to get the answer from my lecturer.Here is the code for ppl to refer or do as reference.

#include <stdio.h>
int CF(int C);
int FC(int F);
int main (){
int x;
printf("Fahrenheit equivalents of Celsius temperature\n");
printf("Celsius\t\tFahrenheit\n");
for (x=0;x<=100;x++){
printf("%d\t\t%d\n",x,CF(x));
}
printf("Celsius equivalents of Fahrenheit temperature\n");
printf("Fahrenheit\tCelsius\n");
for (x=32;x<=212;x++){
printf("%d\t\t%d\n",x,FC(x));
}
return 0;
}
int CF( int C){
return (int)(32+(C * 9 / 5));
}
int FC(int F){
return (int)(5.0 /9.0 *(F-32));
}

Hi everyone!, I had this confusion about the the Bucket Sort Algorithm.
I just wanna know why mostly bucket sort use the range of element in between 0 and 1 ...