Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include <stdio.h>
- using namespace std;
- int main()
- {
- char a[52],b[52]="";
- int n,i,x;
- gets(a);
- n=strlen(a);
- for(i=0;i<n;i++)
- {
- x=(int)(a[i+1]-48);
- while(x)
- {
- strcat(b,(char*)(a[i]));
- x--;
- }
- }
- puts(b);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement