I've gone back to do a bit of console programming while reading c++ Primer. I'm having a bit of trouble with this function. For some reason I'm not getting a value set to stone.
#include <iostream>
usingnamespace std;
int PoundCon(int);
int main()
{
int pounds;
int stone;
cout << "Enter your weight in pounds: ";
cin >> pounds;
stone = PoundCon(pounds);
cout << "Your weight in stone is: ";
cout << stone;
return 0;
}
int PoundCon(int pounds)
{
return pounds / 14;
}