Generation

generate functionMon, 17 Apr 2023

Cambiar de base 10 a cualquier base N = 30 base 2 Nb = 11110

int conversor(int N, int base) { if(N == 0) return 0; else return (N%base + 10*conversor(N/base, base)); } conversor(30, 2)

Questions about programming?Chat with your personal AI assistant