Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- { int i,arr[5],value,count=0;
- for(i=0;i<5;i++)
- {
- scanf("%d",&arr[i]);
- }
- scanf("%d",&value);
- for(i=0;i<5;i++)
- {
- if(value==arr[i])
- {
- count++;
- }
- }
- if(count!=0)
- {
- printf("%d",count);
- }
- else
- {
- printf("not found");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement