Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////
- //// Posted By Ivan Jhahy ///
- /////////////////////////////
- #include <iostream>
- using namespace std;
- int main(){
- srand(time(NULL));
- int dim = rand()%20;
- cout << dim;
- int primo[dim], secondo[dim], terzo[dim], i, ricorrenza;
- cout << primo[dim] << endl;
- cout << secondo[dim] << endl;
- cout << terzo[dim] << endl;
- while (i<dim){
- primo[i] = rand()%100;
- cout << primo[i] << endl;
- secondo[i] = rand()%100;
- cout << secondo[i] << endl;
- terzo[i] = rand()%100;
- cout << terzo[i] << endl;
- if (primo[i] && secondo[i] && terzo[i])
- ricorrenza = primo[i];
- cout << ricorrenza << endl;
- }
- system("PAUSE");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement