Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4. char s[53], s1[300];
  5. int main()
  6. {
  7.  
  8. cin.getline(s1,53);
  9. int l, nr,k;
  10. l=strlen(s1);
  11. for (int i=0; i<l;i++)
  12. { s2[k]=s1[i];
  13. nr=s[i+1]-'0'
  14. while (nr > 0)
  15. {
  16. s2[k+1]=s[i];
  17. nr--;
  18. }
  19.  
  20. }
  21. }
  22.  
  23.  
  24. #include <iostream>
  25. #include <cstring>
  26. using namespace std;
  27. char s[53], s1[300];
  28. int j=0;
  29. int main()
  30. {
  31. cin.getline (s,53);
  32. for (int i=0; i<strlen(s); i+=2)
  33. for(char k='1'; k<=s[i+1];k++)
  34. {
  35. s1[j]=s[i];
  36. j++;
  37. }
  38. s1[j]=0;
  39. cout << s1;
  40. return 0;
  41. }
  42.  
  43.  
  44.  
  45.  
  46. #include <iostream>
  47. #include <cstring>
  48. using namespace std;
  49. char s[21];
  50. int main()
  51. {
  52. cin.getline (s,21);
  53. for (int i=0; i<strlen(s); i++)
  54. if (strchr("aeiouAEIOU",s[i])== NULL)
  55. {
  56. strcpy(s+i, s+i+1);
  57. i--;
  58. }
  59. cout << s;
  60. return 0;
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement