2025-02-21 20:11:37 +08:00

17 lines
198 B
C

#include <stdio.h>
int main(){
int month, total = 2, i;
scanf("%d", &month);
for(i=1;i<=month;i++){
if(i%3==0){
total *= 2;
}
printf("%d月:%d个数\n", i, total);
}
return 0;
}