0
Hi, how can i write it in separate function ?
#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main () { srand(time(0)); for (int x = 1; x <= 10; x++) { cout << 1 + (rand() % 6) << endl; } }
4 Antworten
+ 1
Thanks
0
what is now as relevant ?