Advertisement
wiktormadera

Zad3/2

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