logo image

C Language program to convert dollars to rupees

Views: 345



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 70 (use current $ value) so that we get in rupees

#include <stdio.h>

int main(void) {
	float dollars;

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

	float rupees = dollars * 70;

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

Output:

Please enter dollars: 300
21000 Rupees 
We are looking for Interns!
Send your resumes to
[email protected]