是反反复复
#include <stdio.h> int main() { int day=9,m,n=1; while(day>0) { m=(n+1)*2; n=m; day--; } printf("the total is %d.\n",m); return 0; }
转载于:https://blog.51cto.com/1154915583/1704342
#include <stdio.h> int main() { int day=9,m,n=1; while(day>0) { m=(n+1)*2; n=m; day--; } printf("the total is %d.\n",m); return 0; }
转载于:https://blog.51cto.com/1154915583/1704342