Import java.io.*;
Import java.util.*;
Import java.text.*;
Import java.math.*;
public class Main
{
public static void Main (String []args)
{
Scanner cin = new Scanner (new Bufferedinputstream (system.in));
while (Cin.hasnext ())
{
BigInteger A=cin.nextbiginteger ();
BigInteger B=cin.nextbiginteger ();
BigInteger C1=a.add (b); Large number of additions
SYSTEM.OUT.PRINTLN ("The result of the addition is" +C1);
BigInteger C2=a.subtract (b); Large number Subtraction
SYSTEM.OUT.PRINTLN ("The result of the reduction is" +c2);
BigInteger c3=a.multiply (b); Large number multiplication
System.out.println (C3);
BigInteger C4=a.divide (b); Large number Division
SYSTEM. Out. PRINTLN ("Except for the result of" +c4 ");
BIGINTEGER C5=a.mod (B); Large number Mode
BIGINTEGER C5=a.remainder (B);
SYSTEM. Out. PRINTLN ("The result of the modulo is" +c5);
BIGINTEGER C6=a.max (B);//Take maximum
SYSTEM. Out. PRINTLN ("Maximum for" +c6);
BIGINTEGER c7=a.min (B); Take the minimum
SYSTEM. Out. PRINTLN ("Minimum for" +c7);
if (A.equals (B))//Determine equality
SYSTEM. Out. PRINTLN ("equal");
ELSE SYSTEM. Out. PRINTLN ("unequal");
BIGINTEGER C8=A.GCD (B); Beg Greatest common divisor
SYSTEM. Out. PRINTLN ("Greatest common divisor for" +c8);
}
}
}
Multiply Java Large numbers