User Profile

Collapse

Profile Sidebar

Collapse
leoafro
leoafro
Last Activity: Aug 8 '07, 05:42 AM
Joined: Aug 2 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • leoafro
    replied to convert decimal to binary
    in C
    Here is the logic of decimal to binary convertion;
    //before looping, after entering the decimal number
    x=0;
    quotient=DecNum/2;
    remainder[x]=Decnum%2; // This is the initial binary number

    //Inside loop
    x++;
    quotient=quotie nt/2;
    remainder[x]=quotient%2;
    // The loop will end if the value of the quotient will become <=1,
    after the loop ends, you will have to reverse...
    See more | Go to post

    Leave a comment:


  • leoafro
    replied to Modifying my code...
    in C
    I suggest you to initialize the array to 14.. because you have 14 elements
    See more | Go to post

    Leave a comment:


  • leoafro
    replied to Need Help With Arrays...
    in C
    This is my code

    Ok.. I hope this code will help you..
    <Removed>
    See more | Go to post
    Last edited by r035198x; Aug 2 '07, 06:31 AM. Reason: Spoon feeding is not allowed

    Leave a comment:

No activity results to display
Show More
Working...