#include #include using namespace std; int main() { int i, x, y; srand(time(NULL)); i = 0; while (i < 20) { x = rand(); y = x % 10; cout << x << "\t" << y << endl; i = i + 1; } return 0; }