Answer to Question #263692 in C++ for deiti

Question #263692

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.


1
Expert's answer
2021-11-11T07:31:09-0500
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS