sivan_iut

Untitled

Feb 13th, 2020
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int n,k;
  5.     scanf("%d%d",&n,&k);
  6.     int i;
  7.     int s[100];
  8.     int count=0;
  9.     for(i=0;i<n;i++)
  10.     {
  11.         scanf("%d",&s[i]);
  12.          if(s[i]>=k)
  13.             count++;
  14.         else
  15.             count;
  16.     }
  17.     printf("%d",count);
  18.  
  19.  
  20.     return 0;
  21. }
Add Comment
Please, Sign In to add comment