C++ program to convert dollars to rupees

Views: 1118   

Following program shows you how to convert dollar to rupees.
In this program we get dollars from user, once we get those we need to multiply with 64 so that we get in rupees

#include <iostream>
#include <math.h>

int main() {
    float dollars;
    std::cout << "Please enter dollars:";
    std::cin >> dollars;
    float rupees = dollars * 64;
    std::cout << rupees << " Rupees ";


Please enter dollars: 1300
83200 Rupees
On By