Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 139 Bytes

File metadata and controls

9 lines (7 loc) · 139 Bytes
int sum = 0;
for (int i = -100; i <= 100; ++i)
	sum +=i;

完成功能:对-100至100范围的所有整数求和

sum终值为0