Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- char s[53], s1[300];
- int main()
- {
- cin.getline(s1,53);
- int l, nr,k;
- l=strlen(s1);
- for (int i=0; i<l;i++)
- { s2[k]=s1[i];
- nr=s[i+1]-'0'
- while (nr > 0)
- {
- s2[k+1]=s[i];
- nr--;
- }
- }
- }
- #include <iostream>
- #include <cstring>
- using namespace std;
- char s[53], s1[300];
- int j=0;
- int main()
- {
- cin.getline (s,53);
- for (int i=0; i<strlen(s); i+=2)
- for(char k='1'; k<=s[i+1];k++)
- {
- s1[j]=s[i];
- j++;
- }
- s1[j]=0;
- cout << s1;
- return 0;
- }
- #include <iostream>
- #include <cstring>
- using namespace std;
- char s[21];
- int main()
- {
- cin.getline (s,21);
- for (int i=0; i<strlen(s); i++)
- if (strchr("aeiouAEIOU",s[i])== NULL)
- {
- strcpy(s+i, s+i+1);
- i--;
- }
- cout << s;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement