trouble with function

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
using namespace 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;
}
oops, this was a waste of post. Who woulda thought 6 pounds doesn't make a stone when it take 14 stone to make a pound!? That's preposterous, lol.
Topic archived. No new replies allowed.