DigiKaze

random5digits

Jun 9th, 2013
99
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. using namespace std;
  3.  
  4. int main()
  5. {
  6.    
  7.     int j = 0;
  8.     while (j < 10){
  9.         for (int i = 0 ; i < 5 ;i++){
  10.             int num = rand() % 6 + 1;
  11.             cout << num;};
  12.         j++;
  13.         cout << "\n";};
  14.        
  15. }
Advertisement
Add Comment
Please, Sign In to add comment