题目描述
思路分析
求除以9的余数
代码实现
package TEST;import java.math.BigInteger;public class Main {public static int max;public static void main(String[] args) {System.out.println(23%9);//ESystem.out.println(190%9);//ASystem.out.println(343251%9);//IBigInteger bigInteger = new BigInteger("651764141421415346185");System.out.println(bigInteger.mod(new BigInteger("9")));//G}}
答案
G