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