Question
DELIVERABLES: Modify the code so that the program will generate 10 random numbers ranging -500 to +1000. The code was getting 10 numbers from user
DELIVERABLES:
Modify the code so that the program will generate 10 random numbers ranging -500 to +1000. The code was getting 10 numbers from user and you can erase this portion
The program will print the entire set of randomly generated numbers
The program will then print all numbers which are multiole of 5 in the reversed order
The program will finally print the count of non-multple of 7 numbers. Lable all of your outputs
Alter the code below in Code below for the deliverables
/* reverse.c (Chapter 8, page 164) */
/* Reverses a series of numbers */
#include
#define N 10
int main(void)
{
int a[N], i;
printf("Enter %d numbers: ", N);
for (i = 0; i < N; i++)
scanf("%d", &a[i]);
printf("In reverse order:");
for (i = N - 1; i >= 0; i--)
printf(" %d", a[i]);
printf(" ");
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started