Java 代码
import java.util.Scanner;
import java.text.DecimalFormat;
public class Main
{
public static void main(String[] args)
{
Scanner cin=new Scanner(System.in);
int id,time;
double wage;
id=cin.nextInt();
time=cin.nextInt();
wage=cin.nextDouble();
double Y=time*wage;
DecimalFormat df=new DecimalFormat("###.00");
System.out.println("NUMBER = "+id);
System.out.println("SALARY = U$ "+df.format(Y));
}
}