#include
void f(int x) //2
{
if (x==0) return ; //3
f(x/2); //4
printf("%d",x%2); //5
}
int main()
{
f(10); //1
printf(" ");
f(7);
printf("\n");
return 0;
}
½ÇÇà½Ã ¼ø¼°¡ //1 -> //2 -> //3 -> //4 -> //2 -> //3 -> //4 -> ....
ÀÌ·±½ÄÀ¸·Î µ¹¾Æ°¡Áö ¾Ê³ª¿©? ´äÀº 1010 1111 À̶ó°í Çϴµ¥....
//5ÇàÀº ¾ðÁ¦ ¸¸³ª³ª¿ä?
Ç®ÀÌÁ» ºÎŹµå¸³´Ï´Ù.