Implement a currency converter which ask the user to enter value in Pak Rupees and convert in following: in cpp

#include <iostream>

int main() {
    double pakRupees;
    double usd, euro, gbp;

    std::cout << "Enter value in Pak Rupees: ";
    std::cin >> pakRupees;

    // Conversion rates as of December 10, 2023
    usd = pakRupees / 288.60;
    euro = pakRupees / 337.81;
    gbp = pakRupees / 382.29;

    std::cout << "Equivalent values:\n";
    std::cout << "USD: " << usd << "\n";
    std::cout << "Euro: " << euro << "\n";
    std::cout << "GBP: " << gbp << "\n";

    return 0;
}

Explanation: 1. First, we include the required header file iostream which provides input/output functionality. 2. We declare the variables pakRupees, usd, euro, and gbp of type double to store the input and conversion values. 3. We prompt the user to enter a value in Pakistani Rupees using std::cout. 4. We read the user input from the console and store it in the variable pakRupees using std::cin. 5. We calculate the equivalent values in USD, Euro, and GBP using the conversion rates. Note that the conversion rates used in this example are fictional and may not be accurate. 6. We output the equivalent values using std::cout. 7. Finally, we return 0 to indicate successful program execution.

Note: This code assumes that the user enters a valid numerical input. Error handling for non-numeric inputs is not included in this example for simplicity.