Advertisement
Andrei_Muresan

V51

Nov 18th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4. char s[60],s1[60];
  5. int main()
  6. {
  7. int i,j,v;
  8. cin>>s;
  9. for (i=0;i<strlen(s);i++)
  10. {
  11. v=s[i+1]-48;
  12. while (v)
  13. {
  14. cout<<s[i];
  15. v--;
  16. }
  17. i++;
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement