using namespace std;
#include <iostream>
int n;
void baza2(int n)
{
int i=1,j,x[30],cifre;
while(n!=0)
{
x[i]=n%2;
n=n/2;
i++;
}
cifre=i-1;
cout<<"Reprezentarea numarului in baza 2 este: ";
for(i=cifre;i>=1;i--) cout<<x[i]<<" ";
cout<<endl;
}
int main()
{
cout<<"Dati n = ";cin>>n;
baza2(n);
}
Casino-Guru - JT Hub
RăspundețiȘtergereFind out what's 시흥 출장샵 the best casino-guru experience. casino-guru-casino-guru.com is an online 삼척 출장샵 gambling site, with 아산 출장안마 a focus on providing a diverse selection of slots, table games 익산 출장샵 and more. 상주 출장안마