+ 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