Question #264892



17. Make a program that will input Philippine currency (Peso), convert it into Dollar. 1 Dollar= 49.50 pesos, Display the Dollar equivalent. Your program will be terminated if the peso currency = 0.



Expert's answer

#include<iostream>
using namespace std;
int main(){
	float peso;
	do{
	cout<<"Enter  peso currency\n";
	cin>>peso;
	cout<<"Equivalent dollar is:  "<<peso / 49.50<<endl;	
	}while(peso !=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!

LATEST TUTORIALS
APPROVED BY CLIENTS