17 lines
195 B
C
17 lines
195 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;
|
|
}
|