Question: Write a C + + program to generate 1 0 random numbers in the range ( 3 0 to 5 5 ) . The program
Write a C program to generate random numbers in the range to
The program needs to print the numbers. Then find and display:
how many of the generated numbers are even,
how many are odd and
how many are divisible by
Note: use the statement: srandtimeNULL;
before the loop to change the seed of generating numbers each time.
Sample InputOutput:
The random numbers are:
The number of evens is
The number of odds is
The numbers divisible by are
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
