January 2019 1 10 Report
Moze mi ktos wytlumaczyc, co znaczy i daje kazda poszczegolna instrukcja? i dlaczego akurat taka, a nie inna :/ (C++, zamiana liczb dziesiętnych na binarne)

int i=0,tab[31];

while(liczba)
{
tab[i++]=liczba%2;
liczba/=2;
}

for(int j=i-1;j>=0;j--)
cout<<tab[j];
More Questions From This User See All

Recommend Questions



Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.