I am working on homework and have spent a few hours but can't figure out what is missing from this code. I would appreciate any help to point in the right direction to resolve this.
I need to write a code that converts inches into the equivalent yards, feet, and inches. When I run the program it says I haven't defined yards. I thought I did but clearly am missing something but after hours of online searching while looking through my textbook I just don't understand what's wrong.
Each Google search takes me to more difficult ways to code this answer but I need the basics as I'm in an intro class to C++.
Thank you to anyone that can help!
using namespace std;
int main( )
int feet, yards, inches;
cout << " Enter distance in inches:\n";
cin >> userInches;