what wil be output of this program and how? pls explain it's functionality | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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; } }

25th Sep 2017, 2:43 PM
Shivani Goyal
0 Answers