#include #include #include int RandomInt(int m); int SquareInt(int x); int main() { int rs; srand(time(NULL)); rs = SquareInt( RandomInt(10) ); printf("Random square: %d\n", rs); return 0; } int RandomInt(int m) { return 1 + rand() % m; } int SquareInt(int x) { return x*x; }