Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int broj,pom1,pom2;
- int niza[100],i=0,j;
- scanf("%d",&broj);
- pom2=broj;
- while(pom2!=0){
- niza[i++]=pom2%2;
- pom2=pom2/2;
- }
- for(j=i-1;j>0;j--){
- printf("%d",niza[j]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement