编辑代码

#include <stdio.h>
int main ()
 {
int a=1,b=0;
while(a<=5)
{
b=b+a;
a++;
}
printf("1+2+3+4+5=%d",b);
return 0;
}