怎么打印剩下的
1 回答

Ipython9
TA貢獻13條經驗 獲得超0個贊
public class test2 {
??? public static void main(String[] args){
??????? int t = 1;????
??????? for(int i=1;i<10;i++){
??????????? t=(t+1)*2;????????????????????????
??????? }
??????? System.out.println("the initial number of peachs is:"+t);
??? }
}
添加回答
舉報
0/150
提交
取消