daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int f1(int n, int x)
  2. {
  3.  
  4.     int vekf1[50];
  5.     x = 0;
  6.     for (int i = 0; i < n;i++) //wektor leci po indeksach
  7.     {
  8.         if (i  % 2 == 0); //sprawdza czy parzyste
  9.         {
  10.             int z = vekf1[i];
  11.             if (0 > z)//sprawdza czy >0
  12.             {
  13.                 x++; //zlicza
  14.             }
  15.         }
  16.     }
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