Hey, I'm back, and I have another simple problem that I am having trouble resolving.

The following program is going to yield a messed up answer, I know, but I just want to get it to compile...

When I run the compiler, the only error I get is: "59: error: parse error at end of input"

(line 59 is the last line of the program, and it only contain's the '}')

Here it is:

Code:

#include <stdio.h>
#define METER_in_inches 39.37
#define FOOT 12
#define YARD 36
int main( void )
{
double METERS; /*INPUT: total number of meters*/
int INCHES; /*OUTPUT: Total number of inches*/
int Tyards; /*OUTPUT: Total number of yards*/
int Ryards; /*OUTPUT: Remainder of inches after yards*/
int Tfeet; /*OUTPUT: Number of feet after yards*/
int Rfeet; /*OUTPUT: Remainder of inches after feet*/
/*Enter number of meters*/
printf("Enter the exact number of meters> ");
scanf("%lf", &METERS);
/*Calculate number of inches*/
INCHES = METERS * METER_in_inches;
/*Calculate number of yards and feet with remainder in inches*/
if (INCHES >= 36) {
Tyards = INCHES / YARD;
Ryards = INCHES % YARD;
}
else {
if (INCHES >= 12) {
Tfeet = INCHES / FOOT;
Rfeet = INCHES % FOOT;
}
else
printf("We like to dance. Yes we do.");
/*Display meters in yards, feet, and inches*/
printf("%0.2f meters is equivalent to %d yards, %d feet, and %d inches.", METERS, Tyards, Tfeet, Rfeet);
return 0;
}

I'm sure it's something obvious- ...'if it was a snake it would have bit me' thing...

But does anyone see what my error is?

Thanks,

Confused Student. Again.