编辑代码

class Main {
	public static void main(String[] args) {
        void main()
{
double x=1,y=9,s;
for (; y>0; y–)
{
x = (x+1)* 2 ;
s = x;
} 
cout << “桃子第一天共摘了” << s << “个” << endl;
}

		System.out.println("桃子第一天共摘了” << s << “个");
	}
}