I'm trying to do an exercise about for, but it's not working...
The exercise says: "Make a program that inverts a string: read the string with gets and save it inverted in another string. Use the for command to scan the string up to its end."
I did this code:
... but it doesn't work.
printf("Digite uma string: ");
printf("\n\nA nova string e:\n%s",s2);
Could anybody, please, check my code and correct it?
Thanks a lot!