#include <stdio.h>
int count();
int main(void)
{
int a, call;
printf("호출횟수 : ");
scanf("%d", &a);
for(call=0; call<a; call++)
{
printf("count : %d\n", count());
}
return 0;
}
int count()
{
static int called = 1;
return called++;
}
호출한 횟수를 반환하는건데...
여기서 3의 배수에는 -1을 곱한 값을 반환시켜야 되는데....
어디를 건드리면 되는걸까여 햏님들
댓글 0