Advertisement
MotorisedEditor

Anapodo string ola ta megethi

Dec 4th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <string.h>
  4.  
  5. main(){
  6. int i,j,k,len,c;
  7. char a[100], temp;
  8.  
  9. gets(a);
  10. len=strlen(a);
  11.  
  12. for(i=0;i<=len/2;i++){
  13. temp=a[i];
  14. a[i]=a[len-i];
  15. a[len-i]=temp;
  16. }
  17.  
  18.  
  19. for(i=1;i<=len;i++){
  20. printf("%c",a[i]);
  21. }
  22.  
  23.  
  24. getch();
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement