Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int i;
- char names[10][40];
- for (i = 0; i < 10; i++)
- {
- printf("Entre com o nome :\n");
- gets(names[i]);
- }
- printf("Nomes invertidos :\n\n");
- for (i = 9; i >= 0; i--)
- {
- puts(names[i]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment