SHARE
TWEET

Varianta 93

Teodora2310 Nov 17th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cstring>
  3. folosirea spațiului de nume std;
  4. char a [205], b [205], s [205];
  5. int principal ()
  6. {
  7.     int i;
  8.     cin >> a >> b;
  9.     pentru (i = 0; i <strlen (a); i ++)
  10.     {
  11.         if (strchr ("aeiou", a [i])! = 0 && strchr ("aeiou", b [i])! = 0)
  12.         {
  13.             s [i] = '*';
  14.         }
  15.         if (strchr ("aeiou", a [i]) == 0 && strchr ("aeiou", b [i]) == 0)
  16.         {
  17.             s [i] = '#';
  18.         }
  19.         if ((strchr ("aeiou", a [i])! = 0 && strchr ("aeiou", b [i]) == 0) || (strchr ("aeiou", a [i]) == 0 && strchr ("aeiou", b [i])! = 0))
  20.         {
  21.             s [i] = '';
  22.         }
  23.     }
  24.     cout << s;
  25.     returnare 0;
  26. }
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