LanQiaoTestCodes/数位拆分.java

19 lines
359 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package Course_Codes;
import java.util.Scanner;
//小明只认识100以内的数如果是大于100的数他只会拿这个数的后两位重算。
public class 数位拆分 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
int sum=0;
sum=(a%100+b%100)%100;
System.out.print(sum);
}
}