首页 > 其他 > 详细

10.15

时间:2017-10-16 13:25:57      阅读:203      评论:0      收藏:0      [点我收藏+]
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());   }   }

10.15

原文:http://www.cnblogs.com/Archon-Cty/p/7676229.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!