#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int r,d,t,code;
printf("enter your code 1 for rupees to dollar\n 2 for dollar to rupee");
scanf("%d",&code);
if(code==1)
{
printf("enter your amount");
scanf("%d",&r);
d=r/(45);
printf("you have dollar %d",d);
}
elseif (code==2)
{
printf("enter your amount");
scanf("%d",&d);
r=d*(45);
printf("you have rupees %d",r);
}
else
printf("invalid code");
getch();
}