+ 1
what wil be output of this program and how? pls explain it's functionality
#include <iostream> #include <cstdlib> using namespace std; int main () { for (int x = 1; x <= 10; x++) { cout << 1 + (rand() % 6) << endl; } }
0 Answers
#include <iostream> #include <cstdlib> using namespace std; int main () { for (int x = 1; x <= 10; x++) { cout << 1 + (rand() % 6) << endl; } }