Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <time.h>
- using namespace std;
- bool szukaj(int T[],int n)
- {
- for(int i=0;i<n;i++)
- {
- if(T[i]%4==0)return true;
- }
- return false;
- }
- int main()
- {
- srand(time(NULL));
- int n=11;
- int *T = new int[n];
- for(int i=0;i<n;i++)
- {
- T[i] = rand()%33;
- cout<<T[i]<<endl;
- }
- if(szukaj(T,n)==true)cout<<"Nie wszystkie";
- else cout<<"Wszystkie";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement