Question 4 The given code fills an array with user inputs between 0 to 100 (both of them included). And then it prints the minimum value from the array. Fill in the blanks in the given code selecting from the list.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 1PP: (Statistics) a. Write a C++ program that reads a list of double-precision grades from the keyboard...
icon
Related questions
Question
100%
Subject: C Programming
ČMP1401 (901) Introdu...
Overview
Plans
Resources
Status and follow-up
Participants
More -
Lab Quiz - 3
Remaining time: 46:43
Question 4
The given code fills an array with user inputs between 0 to 100 (both of them included). And then it prints the minimum value from the array. Fill in the blanks in
the given code selecting from the list.
#include <stdio.h>
int
int i,min;
int my_array[5];
for(i=0;i<5;i++) {
O ("Please enter %d. number = ", (i+1));
O ("%d", &my_array[i]);
if(my_array[i] > 100
O my_array[i] < 0}{
i--;
MacBook Pro
く※
esc
Transcribed Image Text:ČMP1401 (901) Introdu... Overview Plans Resources Status and follow-up Participants More - Lab Quiz - 3 Remaining time: 46:43 Question 4 The given code fills an array with user inputs between 0 to 100 (both of them included). And then it prints the minimum value from the array. Fill in the blanks in the given code selecting from the list. #include <stdio.h> int int i,min; int my_array[5]; for(i=0;i<5;i++) { O ("Please enter %d. number = ", (i+1)); O ("%d", &my_array[i]); if(my_array[i] > 100 O my_array[i] < 0}{ i--; MacBook Pro く※ esc
Calendar
Support
BAU
BAUGO
BAU Library
CMP1401 (901) Introdu...
Overview
Plans
Resources
Status and follow-up
Participants
More -
for(i=0;i<5;i++) {
O ("Please enter %d. number = ", (i+1));
O ("%d", &my_array[i]);
if(my_array[i] > 100
O my_array[i] < 0){
i--;
}
min = 101;
for(i=0; i<5; i++) {
if(my_array[i] <
O) {
min = my_array[i];
}
printf("The smallest integer in array is %d",min);
O 0;
Back
Complete test
Pause test
MacBook Pro
Transcribed Image Text:Calendar Support BAU BAUGO BAU Library CMP1401 (901) Introdu... Overview Plans Resources Status and follow-up Participants More - for(i=0;i<5;i++) { O ("Please enter %d. number = ", (i+1)); O ("%d", &my_array[i]); if(my_array[i] > 100 O my_array[i] < 0){ i--; } min = 101; for(i=0; i<5; i++) { if(my_array[i] < O) { min = my_array[i]; } printf("The smallest integer in array is %d",min); O 0; Back Complete test Pause test MacBook Pro
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr