#돈 놓고 돈 먹기
## CODE <a class='btn btn-default' href='/codes/9839'>Link</a>
```
public class Game{
public static void main(String[]args){
int num = dice() + dice() + dice();
double doller = exchange(num);
System.out.printf("획득 금액: $ %.2f(%d)", doller, num);
}
public static int dice(){
double a = Math.random() * 6;
int b = (int)a;
int temp = b + 1;
return temp;
}
public static double exchange(int k){
double result = k * 1082.25108;
return result;
}
}
```
## INPUT
```
```
## OUPUT
```
획득 금액: $ 15151.52(14)
```
sehongpark님의 답변
# 맞습니다