Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- int a=30,b=40,wynik=0;
- using namespace std;
- int main()
- {
- srand(time(NULL));
- cout << "Suma liczb" << endl;
- for(int i=100;i>0;i--){
- wynik = a+rand()%(b-a+1) + wynik;
- }
- cout << wynik;
- return 0;
- }
Add Comment
Please, Sign In to add comment