ok...im new to this c++ stuff and i was wondering why the last prompt wont come up.
here is my code:
Code:
#include <iostream>
#include <iomanip>
using namespace std;
int main ()
{
int pounds; //number of pounds
int shilling; //number of shilling
int pence; //number of pence
float decPounds; //conversion of Decimal Pounds
cout << "Enter number of pounds: ";
cin >> pounds;
cout << "Enter number of shilling: ";
cin >> shilling;
cout << "Enter number of pence: ";
cin >> pence;
decPounds = (shilling * 12 + pence) / 240 + pounds;
cout << "Results in decimal pounds = " ;
cout << decPounds;
return 0;
}