看了半天,你这题应该是求5的0次幂+5的1次幂+...+5的10次幂的和吧?#include <stdio.h>void main() int i; int p; int s; p = 1; s = p; for(i=1; i <= 10; i++) p *= 5; s += p; } printf("s=%d", s);}#include<stdio.h>main()int i,j,m=1;for(i=0;i<=10;i++) for(j=1;j<=i;j++) m*=5; s+=m; }printf("%d",s);}#includemain() { int i,j,m=1; for(i=0;i<=10;i++) { for(j=1;j<=i;j++) m*=5; s+=m; } printf("%d",s); }