Search:

Type: Posts; User: juancardenas

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    5,411

    parsing a number

    to parse a number using modulus and division
    would you do this

    for example ( number = 12345 )





    digit1 = ( number % 10 ) /1; /*5*/
  2. Replies
    11
    Views
    17,475

    its: str = " "; there needs to be a...

    its:


    str = " ";


    there needs to be a space between there
  3. Replies
    1
    Views
    1,464

    binary to decimal

    I need to convert a binary number to a decimal number

    does this look good:




    #include <stdio.h>

    int main()
  4. Replies
    9
    Views
    1,527

    you forgot the address operator (&) in your scanf...

    you forgot the address operator (&) in your scanf statements

    forgeting to precede the variable in a scanf statement with an ampersand produces a run-time error not a compiling error
  5. Replies
    8
    Views
    21,781

    ok! i got this and it seems to work also ...

    ok!

    i got this and it seems to work also



    if ( second_largest < number )
    second_largest = largest;

    if ( largest < number )
  6. Replies
    8
    Views
    21,781

    how do u find 2nd largest number??

    i need to find the two largest vaules of 10 numbers using a while loop.

    so far i can only find the largest number but can't fingure out how to get the 2nd largest number.

    here is how i find the...
Results 1 to 6 of 6