Advertisement
Guest User

Untitled

a guest
Dec 12th, 2011
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int eleven(int a[20], int n)
  5. {
  6. int i,v=0;
  7. for (i=0; i<n; i++)
  8. if (a[i] > 11)
  9. { v=1; break; }
  10. return v;
  11. }
  12.  
  13. int main()
  14. {
  15. int a[20],n,i,v;
  16.  
  17. cin >> n;
  18. for (i=0; i<n; i++)
  19. cin >> a[i];
  20.  
  21. v = eleven(a,n);
  22. if (v==1)
  23. cout << "Yes!\n";
  24. else
  25. cout << "No!\n";
  26.  
  27. return 0;
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement