Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n,i=0,j;
- char ch[100];
- scanf("%d",&n);
- scanf("%s",ch);
- j=0;
- while(i+j<n){
- i=i+j;
- printf("%c",ch[i]);
- j++;
- }
- printf("\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement