I'm using the Miracle C compiler with windows XP and when I go to compile this:
Code:
#include <stdio.h>
int main()
{
float a;
a = 0;
while (a <= 100)
{
printf("%6.2f degrees F = %6.2f degrees C\n",
a, (a - 32.0) * 5.0 / 9.0);
a = a + 10;
}
fgetc(stdin);
return 0;
}
Miracle C says back to me:
Miracle C Compiler (r3.2), written by bts.
Compiling C:\Documents and Settings\Daniel Granger\My Documents\C\f2c.c
main
C:\Documents and Settings\Daniel Granger\My Documents\C\f2c.c: line 7: unrecognised types in comparison
'while (a <= 100) { printf("%6.2f degrees F = %6.2f degrees C\n", a, (a - 32.0) * 5.0 / 9.0)'
aborting compile
Can some please tell me whats going wrong