Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- main()
- {
- char str[20];
- int i, no=0;
- printf("문자열입력:");
- scanf("%s",str);
- //gets(str);
- while (str[no] != '\0')
- no++;
- for (i=no - 1; i>=0; i--){
- printf("[%c]",str[i]);
- }
- printf("\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement