Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- int N,H,W,L,flag=0;
- printf("Enter the number of the matches: ");
- scanf("%d",&N);
- printf("Enter the box's width: ");
- scanf("%d",&W);
- printf("Enter the box's length: ");
- scanf("%d",&L);
- while (flag < N)
- {
- int match;
- scanf("%d",match);
- if (N>=1 && N<=50 && H>=1 && H<=100 && W>=1 && W<=100)
- {
- flag++;
- printf ("YES");
- }
- else
- printf("NO");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement