C Programming Make a program that will accept an integer and loop for the same number of times as that of the inputted integer and input random integers and add it to the array/list one by one, per line. Afterwards, make your program accept another random integer. Using that final integer, compare from your array/list if the final integer's value is also present in your current array/list. If so, print "Present"; otherwise, print "None". Start coding now! Input 1. Size of the array 2. Elements of the array 3. Integer to be searched Output The first line will contain a message prompt to input the size of the array. The succeeding lines will contain message prompts to input the elements of the array. The next line will contain a message prompt to input the integer to be searched. The last line contains the appropriate message.
C
Make a program that will accept an integer and loop for the same number of times as that of the inputted integer and input random integers and add it to the array/list one by one, per line. Afterwards, make your program accept another random integer.
Using that final integer, compare from your array/list if the final integer's value is also present in your current array/list. If so, print "Present"; otherwise, print "None".
Start coding now!
Input
1. Size of the array
2. Elements of the array
3. Integer to be searched
Output
The first line will contain a message prompt to input the size of the array. The succeeding lines will contain message prompts to input the elements of the array. The next line will contain a message prompt to input the integer to be searched. The last line contains the appropriate message.
![+ Back to Home
Time Left: 6:05:58:41
Overall Score: 20/70
Current Rank: 1st
Layout: Side-by-Side
Save
main.c
Test Cases
Executions
3. Search and Rescue
by CodeChum Admin
E Run Tests
Make a program that will accept an
integer and loop for the same number of
times as that of the inputted integer and
input random integers and add it to the
array/list one by one, per line. Afterwards,
O Test Case 1
Your Output
make your program accept another
random integer.
No Output
Using that final integer, compare from
your array/list if the final integer's value is
also present in your current array/list. If
so, print "Present"; otherwise,
Expected Output
Enter the size: 5
print "None".
Element #1: 3
Element #2: 21
Start coding now!
Elenent #3: 2
Elenent #4: 5
Element #5: 23
Input
1. Size of the array
Enter the integer to be searched:
Present
2. Elements of the array
3. Integer to be searched
O Test Case 2
Score: 0/10
Activate Windows
erting
= Overview
3/7
Execute Code
H P Type here to search
28°C Light rain
A O 40 D ENG
N-VISION
PONERALITS
五](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F1c824140-e48e-47b5-8255-e4bcf451ff53%2Fbcb888a2-67d1-40fe-a53e-09c7cbc3e054%2Fdnmyyls_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)