10.9

package homework;
import java.util.Scanner;
public class Test 
  { public static void main(String[] args)
    { int number1 = (int) (System.currentTimeMillis() % 10); //从1970年开始到现在这个时刻的毫秒值 int number2 = (int) (System.currentTimeMillis() / 7 % 10); //从1970年开始到现在这个时刻的毫秒值 System.out.println(number1 + " . " + number2); Scanner scan = new Scanner(System.in); System.out.println("what is" + number1 + "+" + number2 + "?"); int answer = scan.nextInt(); System.out.println(number1 + "+"+number2 + "=" + answer + "is"+ (number1 + number2 == answer)); //System.out.println(System.currentTimeMillis());   }   }
posted @ 2017-10-16 10:57  ELF_CH  阅读(168)  评论(0编辑  收藏  举报