When i=5,after execution of the statement i*=i+1; the value of i is【1】

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 00:43:53
Wheni=5,afterexecutionofthestatementi*=i+1;thevalueofiis【1】Wheni=5,afterexecutionofthestatementi*=i+

When i=5,after execution of the statement i*=i+1; the value of i is【1】
When i=5,after execution of the statement i*=i+1; the value of i is【1】

When i=5,after execution of the statement i*=i+1; the value of i is【1】
i应该是变成了30,意思是i=5,经过运算i=i*(i+1),i=5*6=30,所以是30