Advertisement
Lukasz_Miskiewicz

s2 zadanie 1

Apr 17th, 2020
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. using namespace std;
  5. int a,b,c;
  6.  
  7. int main()
  8. { a=0;
  9. b=9; //od 0 do 9
  10. while(a<3)
  11. {
  12. cout<< rand()%(b)<<endl; //rand jako random, losowe //
  13. a++;
  14. }
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement