SHARE
TWEET

maganhangzok

a guest Oct 14th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int x=6;
  8.     int k=0;
  9.     string szoveg = "alfred almat evett";
  10.     char tomb [5]={'a', 'e', 'i', 'o','u'};
  11.     for (int i =0;i<szoveg.length();i++)
  12.     {
  13.         for (int j=0;j<5;j++)
  14.         {
  15.           if(szoveg[i]== tomb[j]){
  16.                 if(k<x)
  17.                 cout << tomb[j] ;
  18.                 k=k+1;
  19.           }
  20.         }
  21.     }
  22.     return 0;
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top