hey guys, I was hoping you could help me out with a problem I have. I am still kinda new at this and I wrote a program that required a password and then converted euros to dollars and vice versa. It works but when you tell it to give you euro to dollars or vice versa it doesnt give you a chance to input the number of dollars. here is the code, I dont know what code tags are but someone told me to put them on the code so here it is just plain. Thanks a lot! I also sent the .cpp if that is of any help. thanks again, max
#include <iostream>
using namespace std;
int main (int argc, char * const argv[]) {
string yesnomaybe;
int x,y;
cout<<"Please enter your password.";
cin>>yesnomaybe;
if (yesnomaybe == "skip") {
cout<<"the password you entered is correct.";
cout<<"would you like to covert euros to dollars or dollars to euros?";
cin>>yesnomaybe;
if (yesnomaybe == "euros to dollars")
cout<<"please enter the amount of euros";
cin>>x;
cout<<"your euros in us dollars is "<<x*1.265<<endl;
if (yesnomaybe == "Dollars to Euros please")
cout<<"Please enter your amount of US Dollars";
cin>>y;
cout<<"Your US Dollars in Euros is "<<y/1.265;}
else (yesnomaybe != "skip");
cout<<"the password you entered is wrong try again";