Advertisement
Anton123

Untitled

Dec 23rd, 2012
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <stdlib.h>
  4.  
  5. void main()
  6. {
  7. int i,j,k,f,n,count;
  8. int a[50];
  9. printf("\nVvedite kolichestvo elementov massiva n:\n");
  10. scanf("%d", &n);
  11. printf("Vvedite elementy massiva a:\n");
  12. for(i=0;i<n;i++)>);
  13. f=0;
  14. count=0;
  15. for(i=0;i<n;i++)>==a[j])
  16. count++;
  17.  
  18. }
  19. if(count==3){
  20. for(k=i;k<n-2;k++)>);
  21. }
  22. else printf("\n 0\n");
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement