THE FOLLOWING PROGRAM SHOWS THE CONVERSION OF RUPEES TO DOLLARS.
#include<stdio.h>
#include<conio.h>
void main()
{
int Rs,Dollars;
clrscr();
printf("Enter Rupees to convert rs to $");
Dollar=80;
Rs=0;
scanf("%d",&Rs);
Dollar=Rs*Dollar;
printf("THE RESULT IS Rs=%d",Rs,Dollar);
getch();
}
PROGRAM EXPLANATION:
THIS PROGRAM IS USED TO CONVERT INTO RUPEES TO DOLLARS.
IF YOU WANT TO CHANGE THE VALUE OF THE CURRENCY THEN YOU CAN REPLACE RUPEES AND DOLLARS AND CHANGE THE VALUES OF THE CURRENCY.
TYPE LIKE THIS:
OUT PUT IS AS FOLLOWS:
No comments:
Post a Comment