Modify the Code to check if the number in this array equals the number chosen, for example, if the number 2 was chosen it should outcome the following “found it" and return 0, otherwise, print "not found" and return 1. #include #include Int main(void) { Int numbers[7]={4,6,8, 2,7,5,0}; // complete your code below

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question

Please i need it ASAP I will give you thumbs up

Q9:
Modify the Code to check if the number in this array equals the number chosen, for
example, if the number 2 was chosen it should outcome the following "found it" and return
0, otherwise, print "not found" and return 1.
#include<cs264.h>
#include<stdio.h>
Int main (void)
{
Int numbers [7]={4,6,8,2,7,5,0};
// complete your code below
}
Transcribed Image Text:Q9: Modify the Code to check if the number in this array equals the number chosen, for example, if the number 2 was chosen it should outcome the following "found it" and return 0, otherwise, print "not found" and return 1. #include<cs264.h> #include<stdio.h> Int main (void) { Int numbers [7]={4,6,8,2,7,5,0}; // complete your code below }
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr