Advertisement
LuckyCipher

reorderstring.c

Jan 28th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <string.h>
  2. #include <stdio.h>
  3.  
  4. int main() {
  5. char a[] = "krataipmtk";
  6. int input = 0;
  7. int i = 0, j = 0;
  8. scanf(" %d",&input);
  9. for(i = input;i < strlen(a);i++){
  10. printf("%c",a[i]);
  11. }
  12. for(j=0;j<input;j++){
  13. printf("%c",a[j]);
  14. }
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement