Question: 3. Given a five-integer array, write a C program to finish ONE of the following tasks: a. If the last digit of your PantherID

 3. Given a five-integer array, write a C program to finish ONE  

3. Given a five-integer array, write a C program to finish ONE of the following tasks: a. If the last digit of your PantherID is an odd number (1, 3, 5, 7, 9), find the max integer in this array. b. If the last digit of your PantherID is an even number (0, 2, 4, 6, 8), find the min integer in this array. #include int main() { int input[] {3, 2, 5,4, 1}; int result; int index=0; int tempmax-input[0]; /*Write code here to find the max (or min) element in "input", and save the value into "result"*/ return 0; }

Step by Step Solution

3.32 Rating (137 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include stdio h int main int input 3 2 5 4 1 int result int i Replace with the actual last di... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!