Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <time.h>
- using namespace std;
- int tab[5];
- int i = 0;
- int ID;
- int a = 1;
- main()
- {
- srand(time(NULL));
- while(i<5)
- {
- tab[i] = rand()%30 + 1;
- cout << tab[i] << "." << endl;
- for(a=0;a<=5;a++)
- {
- }
- }
- cout << "================" << endl;
- a = 0;
- for(i=0; i<5; i++)
- {
- cout << tab[i] << "." << endl;
- }
- }
Add Comment
Please, Sign In to add comment