gpt4 book ai didi

java - 我一直收到 'illegal start of expression',我不知道为什么

转载 作者:行者123 更新时间:2023-12-03 23:30:36 44 4
gpt4 key购买 nike

<分区>

正如标题中所说,我在我的代码中的方程式部分出现了非法的表达式开头。我确实相信我把一切都弄对了,但我仍然有一个非法的表达开始。

public class FacebookUsers 
{

public static void main(String[] args)
{
int months = 1;

for ( int people = 500000000; people < 2000000000; months ++)
{
people = (peoplestart) * ((1.05)**(months));
}

System.out.println("It took "+months+" to reach one billion users on "
+ "facebook at the rate of 5% growth.");
months = 1;
for ( int people = 500000000; people < 2000000000; months ++)
{
people = people * ((1.05)**(months));
}
System.out.println("It took "+months+" to reach two billion users on "
+ "facebook at the rate of 5% growth.");

}

}

感谢任何帮助,并在此先感谢您。

44 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com