Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6. int N,H,W,L,flag=0;
  7. printf("Enter the number of the matches: ");
  8. scanf("%d",&N);
  9. printf("Enter the box's width: ");
  10. scanf("%d",&W);
  11. printf("Enter the box's length: ");
  12. scanf("%d",&L);
  13. while (flag < N)
  14. {
  15. int match;
  16. scanf("%d",match);
  17. if (N>=1 && N<=50 && H>=1 && H<=100 && W>=1 && W<=100)
  18. {
  19. flag++;
  20. printf ("YES");
  21. }
  22. else
  23. printf("NO");
  24. }
  25.  
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement