Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. void reverse(char* string)
  3. {
  4. int k=strlen(string)-1;
  5.  
  6. while(k!=0)
  7. {
  8.     printf("%c|",string[k]);
  9.     k--;
  10. }
  11. }
  12. int main()
  13. { char recenica[50];
  14. printf("Unos: \n");
  15. gets(recenica);
  16. reverse(recenica);
  17.  
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement