Advertisement
Josif_tepe

Untitled

Feb 4th, 2022
1,096
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     string zbor;
  6.     cin >> zbor;
  7.    
  8.     char c;
  9.     cin >> c;
  10.    
  11.     for(int i = 0; i < zbor.size(); i++) {
  12.         if(zbor[i] == c) {
  13.             cout << "DA" << endl;
  14.             return 0;
  15.         }
  16.     }
  17.    
  18.     cout << "NE" << endl;
  19.     return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement