Nayeemzaman

Untitled

Nov 1st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int n,c=0,i,x,array[100]={0};
  5. scanf("%d",&n);
  6. for(i=0;i<n;i++)
  7. {
  8. scanf("%d",&x);
  9. array[x]++;
  10. }
  11. for(i=0;i<n;i++){
  12. if(array[x]>1)
  13. {
  14. c++;
  15. }
  16. }
  17. printf("%d",c);
  18. }
Add Comment
Please, Sign In to add comment