Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdio>
- using namespace std;
- int main() {
- int amountVisitor, heiMin, heiMax, visitorAllow = 0, visitor;
- cin >> amountVisitor >> heiMin >> heiMax;
- while(scanf("%d", &visitor) != EOF && amountVisitor > 1){
- if(visitor >= 50 && visitor <= 250 && visitor <= heiMax && visitor >= heiMin){
- visitorAllow++;
- }
- amountVisitor--;
- }
- cout << visitorAllow << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement