Hi im trying to make a program that translates $'s into £'s. I tryed typing this but there was a error. PLease can u correct it?
Code:#include <iostream> using namespace std; int main() { float dollar, pounds; cout << "Type in how many dollars you want to translate: "; cin >> dollar; if( (pounds = 1 ) cout << "60 pence" << endl; else if ( pounds = 2) cout << "1 pound twenty pence" << endl; else if ( pounds = 3) cout << "1 pound eighty pence" << endl; // The pounds and dollars go om for ages until it goes up to $50 char c; cin >> c; return 0; }