Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int f1(int n, int x)
- {
- int vekf1[50];
- x = 0;
- for (int i = 0; i < n;i++) //wektor leci po indeksach
- {
- if (i % 2 == 0); //sprawdza czy parzyste
- {
- int z = vekf1[i];
- if (0 > z)//sprawdza czy >0
- {
- x++; //zlicza
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement