Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <time.h>
- #include <stdlib.h>
- using namespace std;
- int suma=0;
- int main()
- {
- srand(time(NULL));
- for (int i=0;i<100; i++)
- {
- suma+=rand()%11+10;
- }
- cout<<"Suma >=1000 i <=2000 to: "<<suma;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement