Question
Write a program to determine which numbers in an array are inside a particular range.The limits of the range are inclusive. You have to write
Write a program to determine which numbers in an array are inside a particular range.The limits of the range are inclusive.
You have to write a complete "C" Program that compiles and runs in Codeblocks. (main.c)
1. Declare an array that can contain 10 integer numbers.Use as the name of the array your LastName (Perez).
2. Use a for loop to generate 10 random numbers between 1 and 100 and fill up the array using those numbers.
3. Ask the user for the lower limit of the range.
4. Ask the user for the upper limit of the range.
5. Use a for loop to check all the numbers in the array and print the numbers inside the range.
The following is an example of how your program should look when you execute it:
The numbers in the array are:
19790148194236799100
Enter the lower limit of the range: 90
Enter the upper limit of the range: 99
The numbers in the range are: 90, 94, 97, 99
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