Advertisement
sheredega

Task #3

Dec 10th, 2022
91
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 <stdlib.h>
  3. using namespace std;
  4.  
  5. int main() {
  6.     srand(time(NULL));
  7.     int num = 1 + rand() % (49);
  8.     cout << "Random number: " << num;
  9.  
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement