Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.math.BigDecimal;
- import java.util.*;
- public class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- BigDecimal x = new BigDecimal(scanner.nextLine());
- int y = Integer.parseInt(scanner.nextLine());
- BigDecimal result = x.multiply(new BigDecimal(y));
- System.out.println(result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement