#include<stdio.h>
int main () { unsigned long int sum = 0UL ; unsigned int i = 0; unsigned int count = 0 ;
printf("请输入您要汇总的最大整数:\n"); scanf("%u",&count);
while (i<=count) sum += i ++;
printf("您所汇总的整数和为 :%lu\n", &sum); // 问题 这个地方总是出现警告,求解决 return 0; } |