/*Funzione ricorsiva che preso in input un valore n, restituisce un intero contenente la rappresentazione binaria di n*/ int to_binary(int n){ if (n == 0) return 0; return (n%2) + 10*to_binary(n/2); }