Advertisement
erfanul007

A

Dec 27th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int n,i=0,j;
  5. char ch[100];
  6. scanf("%d",&n);
  7. scanf("%s",ch);
  8. j=0;
  9. while(i+j<n){
  10. i=i+j;
  11. printf("%c",ch[i]);
  12. j++;
  13. }
  14. printf("\n");
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement