728x90
#include <stdio.h>
#define EXCHANGE_RATE 1300
int main()
{
int krw, usd;
printf("원화 입력:");
scanf("%d" ,&krw);
usd = krw * EXCHANGE_RATE;
printf("%d",usd);
return 0;
}
반응형
#include <stdio.h>
#define EXCHANGE_RATE 1300
int main()
{
int krw, usd;
printf("원화 입력:");
scanf("%d" ,&krw);
usd = krw * EXCHANGE_RATE;
printf("%d",usd);
return 0;
}