You need to terminate the following statements with semicolons:
const double conversion = 2.54;
const int inchesPerFoot = 12;
And this was okay many years ago...
#include <iostream.h>
...but if you are living in the 21st century, it should be...
#include <iostream>
...especially since you are...
using namespace std;
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Just a hint, after doing Dave's corrections study up on the modulus operator % ...
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417