JakubKaczmarek_123

zadanie 3

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