The mistake is that you are using integers (the set 0,1,2,3 and -1 etc)
to represent floating point number.
int a=2*1.2; gives sets a to 2.
write
double Meters;
double Yards;
instead of the two int declarations.
Reputation Points: 732
Solved Threads: 134
Practically a Master Poster
Offline 659 posts
since Nov 2008