SHARE
TWEET

Untitled

a guest Jan 24th, 2020 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Pawel Kalinowski 
  2.  
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.  
  10.     int tablica[19];
  11.     int n = 0;
  12.     int ind = 0;
  13.  
  14.     for (int i = 0; i < 4; i++)
  15.     {
  16.         cin >> tablica[i];
  17.     }
  18.  
  19.     cin >> n;
  20.  
  21.     for (int i = 0; i < 4; i++)
  22.     {
  23.         if (tablica[i] == n)
  24.         {
  25.             ind == i;
  26.             cout << i;
  27.             return 0;
  28.         }
  29.         else
  30.         {
  31.             cout << "NIE MA";
  32.         }
  33.  
  34.     }
  35.  
  36.  
  37.     return 0;
  38. }
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