Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int x , a[6] ,i , j;
- while(scanf("%d" ,&x) == 1)
- {
- for(i = 0; i < 5; i++)
- {
- scanf("%d" ,&a[i]);
- }
- j = 0;
- for( i = 0; i < 5; i++)
- {
- if(x == a[i])
- {
- j++;
- }
- }
- printf("%d\n",j);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement