This is the code I used...
of couse, being a newbie, right now I'm not able to do that all by myself so I got some help on it...
-EmoPHP Code:#include <stdio.h>
#include <string.h>
int main( void )
{
char num[256];
int i;
printf( "Enter a number: " );
scanf( "%s", &num );
printf( "\nYour number: %s\n", num );
printf( "Your number backwards: " );
for( i = 0; i <= strlen( num ); i++ ){
printf( "%c", num[strlen( num ) - i] );
}
printf("\n");
return 0;
}




Reply With Quote