Make a program that will input Dollar currency, convert it into peso. Peso= dollar
currency*50.00 pesos, Display the peso equivalent. Your program will be terminated if the
inputted Dollar currency = 0.
Source code
#include <iostream> using namespace std; int main() { while(true){ double dollars; cout<<"\nEnter dollars: "; cin>>dollars; if (dollars==0){ break; } double peso=dollars*50.00; cout<<"The equivalent of $"<<dollars<<" is "<<peso<<" pesos"; } return 0; }
Output
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!