>>768
( ´゚д゚`)えーーー
main関数をこれに置き換えてちょ。

int main(void){
    int n;
    printf("Input number: ");scanf("%d",&n);
    printR(n);printf("\n");
}