#include
using namespace std;
void main()
{
int shilling=0,pence=0,pounds=0;
cout<<"Enter Pounds: "; cin>>pounds;
cout<<"Enter Shillings: "; cin>>shilling;
cout<<"Enter Pence: "; cin>>pence;
float ans=(float)pounds + (float)shilling/20 + ((float)pence/12)/20;
cout<<"Conversion yields: "<
}
Cool snippets you post here...
ReplyDeleteParticipate in challenges on my blog:
http://recurseit.blogspot.com/p/challenge.html