Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #include <stdlib.h>
- void main()
- {
- int i,j,k,f,n,count;
- int a[50];
- printf("\nVvedite kolichestvo elementov massiva n:\n");
- scanf("%d", &n);
- printf("Vvedite elementy massiva a:\n");
- for(i=0;i<n;i++)>);
- f=0;
- count=0;
- for(i=0;i<n;i++)>==a[j])
- count++;
- }
- if(count==3){
- for(k=i;k<n-2;k++)>);
- }
- else printf("\n 0\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement