Write a program that takes two strings as input, converts them to BigDecimal numbers, multiplies them, and prints the result.
Computer scienceProgramming languagesJavaAdditional instrumentsEssential standard classesStandard classes for computations
BigDecimal
Multiplication
Report a typo
Sample Input 1:
100
100Sample Output 1:
10000Sample Input 2:
22222222222222222222222222222222222222222.222222222222222222222
55555555555555555555555555555555555555555.555555555555555555555Sample Output 2:
1234567901234567901234567901234567901234567901234567901234567876543209876543209876.543209876543209876543209876543209876543210Write a program in Java 17
import java.math.BigDecimal;
class Main {
public static void main(String[] args) {
// write your code here
}
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.