Write a complete program that will convert Malaysian Ringgit to Japanese Yen and
Singapore Dollar. The user will have to input an amount in Malaysian Ringgit and the
program will then display its equivalent amount in Japanese Yen and Singapore Dollar
#include <iostream>
using namespace std;
int main()
{
double ringgits;
cout << "Enter the amount of Malaysian Ringgit: ";
cin >> ringgits;
cout << ringgits << " Malaysian Ringgit is:\n" << ringgits * 26.05 << " Japanese Yen\n" << ringgits * 0.32 << " Singapore Dollar";
return 0;
}
Comments
Leave a comment