#include<stdio.h> #include<stdlib.h> #include<time.h> const int N = 5; int main() { int x, n; srand(time(0)); for (n = 1; n <= N; n++) { x = rand() % 32; printf("%3d", x); } printf("\n"); return 0; }
2024-03-24 17:45:46
#include<stdio.h> #include<stdlib.h> #include<time.h> const int N = 5; int main() { int x, n; srand(time(0)); for (n = 1; n <= N; n++) { x = rand() % 32; printf("%3d", x); } printf("\n"); return 0; }