10.15

package cty;
import java.util.Scanner;
public class Test 
  { public static void main(String[] args)
    { int A = (int) (System.currentTimeMillis() % 10); int B = (int) (System.currentTimeMillis() / 7 % 10); System.out.println(A + " . " + B); Scanner scan = new Scanner(System.in); System.out.println("what is" + A + "+" + B + "?"); int answer = scan.nextInt(); System.out.printlnA + "+"+B + "=" + answer + "is"+ (A + B == answer)); //System.out.println(System.currentTimeMillis());   }   }

 


posted @ 2017-10-16 11:36  Archon  阅读(150)  评论(0编辑  收藏  举报