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.
#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);
}
Comments
Leave a comment