Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdio>
- #include <time.h>
- #include <stdlib.h>
- #include <conio.h>
- using namespace std;
- int tab[999];
- int main()
- {
- srand(time(0));
- int b=0;
- for(int i=1;i<=999;i++)
- {
- tab[i]=rand()%7+4;
- cout << i << "." << tab[i] << "\t" ;
- b=b+tab[i];
- }
- cout << endl << endl << "suma wszystkich wyrazow to: " << b;
- getchar();
- cin.ignore();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement