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.
#include <iostream>
using namespace std;
int main() {
while ( true ) {
double i;
cout << "Enter peso: ";
cin >> i;
if (i == 0) break;
else
cout << i << " poso equals to " << 50 * i << "dollars" << endl;
}
return 0;
}
Comments
Leave a comment