#include <stdio.h> #include <stdlib.h> void change10_2(int n) { if (n == 0) return; else { change10_2(n / 2); printf("%d", n % 2); } } int main() { int n,answer; printf("input:"); scanf("%d",&n); answer=abs(n); change10_2(answer); printf("\n"); return 0; }