#include <stdio.h>
int main()
{
double dollar, won, rate;
printf("환전할 금액(달러)을 입력해주세요: ");
scanf("%lf", &dollar);
rate = 1093.5;
won = rate*dollar;
printf("환전된 금액:%0.2lf 원", won);
return 0;
}
#include <stdio.h>
int main()
{
double dollar, won, rate;
printf("환전할 금액(달러)을 입력해주세요: ");
scanf("%lf", &dollar);
rate = 1093.5;
won = rate*dollar;
printf("환전된 금액:%0.2lf 원", won);
return 0;
}