Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- bool szukaj(int T[],int n)
- {
- for(int i=0;i<n;i++)
- {
- if(T[i]>11)return false;
- }
- return true;
- }
- int main()
- {
- int n=15;
- int *T = new int[n];
- for(int i=0;i<n;i++)
- {
- cout<<"Podaj "<<i+1<<" element: ";cin>>T[i];
- }
- if(szukaj(T,n)==true)cout<<"Mniejsze od 11";
- else cout<<"wieksze niz 11";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement