Java
1
2
3
4
5
6
7
8
9
|
public class Main {
public static void main(String[] args) {
double num1 = 100.12;
int num2 = 50;
double sum = num1 * (double)num2;
System.out.printf("%.2f * %d = %.0f", num1, num2, sum);
}
}
|
cs |