Advertisement
Lukasz_Miskiewicz

s2 zadanie 3

Apr 17th, 2020
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int a=10,b=20,c=0;
  10. for(int i=1;i<=100;i++)
  11. {c=c+(a+rand()%(b-a+1));}
  12. cout<<c;
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement