Find the C program language Deal or No Deal? by CodeChum Admin When I was a kid, I used to watch this TV game show, Deal or No Deal? In the game, there are different brief cases, each labeled with a number. Inside each brief case is an amount in Pesos and the goal is to guess which briefcase contains the smallest amount. In this program, instead of just finding the smallest amount, your task is to ask the user for an integer input and print the values in the array smaller than the inputted integer. Instructions: In the code editor, you are provided with an array with 100 elements. Your task is to ask the user for an integer input and then print all the elements in the array whose value is lesser than the inputted integer. Input 1. Inputted integer Output Enter value: 6 1 3 2 4 5 0 3 5 1 5 0 3 0 2 2 2 4 4
Find the C program language
Deal or No Deal?
by CodeChum Admin
When I was a kid, I used to watch this TV game show, Deal or No Deal? In the game, there are different brief cases, each labeled with a number. Inside each brief case is an amount in Pesos and the goal is to guess which briefcase contains the smallest amount.
In this program, instead of just finding the smallest amount, your task is to ask the user for an integer input and print the values in the array smaller than the inputted integer.
Instructions:
In the code editor, you are provided with an array with 100 elements.
Your task is to ask the user for an integer input and then print all the elements in the array whose value is lesser than the inputted integer.
Input
1. Inputted integer
Output
Enter value: 6
1
3
2
4
5
0
3
5
1
5
0
3
0
2
2
2
4
4
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images