Question: Create a C++ code using a for loop which calculates the sum of Z integers inputted by a user . Z is a random number
Create a C++ code using a for loop which calculates the sum of Z integers inputted by a user. Z is a random number which is computer generated. Z is between 5 and 15 (both included).
Use the these libraries for rand(),srand(), and time() support.
#include
setting seed: srand(time(NULL))
Use this for generating a random number: rand()
BELOW IS THE CODE I HAVE CREATED. PLEASE ALSO EXPLAIN WHY IT IS NOT OUTPUTTING THE CORRECT OUTPUT

Einclude
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
