Answer to Question #264892 in C++ for Rille

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.



1
Expert's answer
2021-11-13T02:16:09-0500
#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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS