#include <stdio.h>#include <conio.h>
int main(){ int iday, itotal = 1, itemp; itemp = 1; for (iday = 9; iday >= 1; iday--) { itotal = (itemp + 1) * 2; itemp = itotal; } printf("total = %d\n", itotal); getch(); return 0;}
应该是小学奥数!不用计算机也够晕的了!
仔细看看书,动脑