Created
May 24, 2019 15:22
-
-
Save tabvn/31e1d4b04af86b8716891c9a3f50a3da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <time.h> | |
using namespace std; | |
int main() | |
{ | |
const int LEN = 99; | |
int x; | |
int arr[LEN]; | |
for (int i = 0; i < LEN; ++i) | |
{ | |
x = (rand() % 2019 +1); | |
arr[i] = x; | |
} | |
cout << "Mang gom cac phan tu ngau nhien <= 2019:" << endl; | |
for (int i = 0; i < LEN; ++i) | |
{ | |
cout << arr[i] << endl; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment