lsp66

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

课后问题一:
import java.util.Arrays;

public class plan1 {
public static void main(String[] args) {
double a;
double b;
int i;
for(i=0;i<=30;i++){
a=(Math.random()100);
b=(Math.random()
100);
System.out.println((int)a+"+"+(int)b+"=");}
}
}
可正常输出四则运算的加法

posted on 2024-09-23 22:32  李世鹏66  阅读(11)  评论(0)    收藏  举报