Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3. #include <string.h>
  4. #include <ctype.h>
  5.  
  6. int main(void) {
  7.  
  8. char pal[101], pa[101];
  9. int a,i,d, re;
  10. scanf("%d %s", &a, pal);
  11.  
  12. for(i=a-1;i>=0;i--){
  13.  printf("%c",pal[i]);
  14.  
  15.  
  16. }
  17.  
  18.  
  19.  
  20.  
  21.   printf("\n");
  22.   return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement