C Language program to convert dollars to rupees

Views: 1   

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 <stdio.h>

int main(void) {
    float dollars;

    printf("Please enter dollars:");
    scanf("%f", &dollars);

    float rupees = dollars * 64;

    printf("%f Rupees", rupees);
}

Output:

Please enter dollars: 300
19200.000000 Rupees
On By