Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. main()
  4. {
  5. char str[20];
  6. int i, no=0;
  7.  
  8. printf("문자열입력:");
  9. scanf("%s",str);
  10. //gets(str);
  11.  
  12. while (str[no] != '\0')
  13. no++;
  14.  
  15. for (i=no - 1; i>=0; i--){
  16. printf("[%c]",str[i]);
  17. }
  18.  
  19. printf("\n");
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement