logo

Crowdly

Kas bus atspausdinta ekrane? #include<stdio.h> bool F2(int a) {   if (a>...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Kas bus atspausdinta ekrane?

#include<stdio.h>

bool F2(int a)

{

  if (a>1&&a<5) return true;

  else return false;

}

int main()

{

  int A[15]={1,2,3,4,5,1,2,3,4,5,1,2,3,4,5};

  int s(0);

  for (int i=0;i<9;i++) if (F2(A[i])) s++;

  printf("%d\n",s);

return 0;

}

More questions like this

Want instant access to all verified answers on moodle.vilniustech.lt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!