to parse a number using modulus and division
would you do this
for example ( number = 12345 )
digit1 = ( number % 10 ) /1; /*5*/
Type: Posts; User: juancardenas
to parse a number using modulus and division
would you do this
for example ( number = 12345 )
digit1 = ( number % 10 ) /1; /*5*/
its:
str = " ";
there needs to be a space between there
I need to convert a binary number to a decimal number
does this look good:
#include <stdio.h>
int main()
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
ok!
i got this and it seems to work also
if ( second_largest < number )
second_largest = largest;
if ( 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...