sivan_iut

Untitled

Feb 13th, 2020
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 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.     }
  16.        
  17.  
  18.     return 0;
  19. }
Add Comment
Please, Sign In to add comment