biryu2205 / Biryu

0 stars 0 forks source link

Hackerrank BigNumber Biginteger #97

Closed biryu2205 closed 6 years ago

biryu2205 commented 6 years ago
import java.math.BigInteger;
import java.util.Scanner;

public class Solution {

  public static void main(String[] args) {
    BigInteger a, b, c;
    Scanner sc = new Scanner(System.in);

    a = new BigInteger(sc.next());
    b = new BigInteger(sc.next());
    c = a.add(b);
    System.out.println(c);
    c = a.multiply(b);
    System.out.println(c);
  }
}

link: https://www.hackerrank.com/challenges/java-biginteger/problem