Iti raspund si-ti trimit si un program in C++ de trecere din baza 10 in baza 2 :
37(b10) = 100101(b2)
254(b10) = 11111110(b2)
#include <bits/stdc++.h>using namespace std;int v[105], r, n, b, k, i;int main(){ cin >> n >> b; while(n) { r = n % b; n = n / b; v[++ k] = r; } for(i = k; i >= 1; i --) cout << v[i]; return 0;}