">

">

完成程序,使其输出结果为 n=2,sum=2 n=3,sum=5 n=5,sum=10

完成程序,使其输出结果为 n=2,sum=2 n=3,sum=5 n=5,sum=10


【正确答案】:第一空:sum+=n第二空:int Sample::sum=0
Top