Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char str[10][100];
- int i, n;
- printf("How many names? ");
- scanf("%d", &n);
- getchar();
- for(i = 0; i < n; i++)
- gets(str[i]);
- for(i = 0; i < n; i++)
- puts(str[i]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment