Guest User

Untitled

a guest
Oct 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. int main(int argc, char const *argv[])
  5. {
  6. int k, n, a;
  7.  
  8. printf("N = ");
  9. scanf("%d", &n);
  10.  
  11. printf("K = ");
  12. scanf("%d", &k);
  13. int br = 0;
  14. for (int i = 0; i < n; i++)
  15. {
  16. printf("A = ");
  17. scanf("%d", &a);
  18. if(a > k)
  19. {
  20. br++;
  21. }
  22. }
  23. printf("%d\n", br);
  24. return 0;
  25. }
Add Comment
Please, Sign In to add comment