Monday, December 10, 2007

How to reverse a word

How to reverse a word

To reverse a word

#include

#include

int main ( void )

{

int t;

cout<< "Please Enter Your Christian Name here : ";

char name[15];

cin>> name;

for (t =strlen(name)-1; t>=0 ; t--)

cout <<<">

return 0;

}

Result :

No comments: