Showing posts with label program that converts old pounds to new. Show all posts
Showing posts with label program that converts old pounds to new. Show all posts

Wednesday, March 16, 2011

Program for Currency Conversion

Program that converts the older Pound money system to the latest one.
#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: "<
}