![subject](/tpl/images/cats/mat.png)
Mathematics, 20.04.2021 20:20 katerdmab
Write the main method of a C program to read a 4-digit integer from the user,
validate the user input and output the highest and the lowest digit in the 4-digit
integer.
Given below are some examples.
Example 1:
Enter a 4 digit number:14
Output: There are 2 digits. Please enter a 4 digit number
Example 2:
Enter a 4 digit number: 1453
Output: Highest digit: 5 Lowest digit: 1
Example 3:
Enter a 4 digit number: 14582
Output: There are 5 digits. Please enter a 4 digit number
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Mathematics
![image](/tpl/images/cats/mat.png)
Mathematics, 21.06.2019 17:30, uticabadgirl
Scrub a dub toothbrushes are $4.00 each. there is a 10% discount, but there is also a 6% sales tax after the discount is applied. what is the new price after tax? round to the nearest penny
Answers: 1
![image](/tpl/images/cats/mat.png)
![image](/tpl/images/cats/mat.png)
Mathematics, 21.06.2019 20:00, cutecupcake678
Apatient is to be given 35 milligrams of demerol every 4 hours. you have demerol 50 milligrams/milliliter in stock. how many milliliters should be given per dose?
Answers: 2
You know the right answer?
Write the main method of a C program to read a 4-digit integer from the user,
validate the user in...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
Mathematics, 16.06.2020 05:57
![Konu](/tpl/images/cats/mat.png)
Mathematics, 16.06.2020 05:57
![Konu](/tpl/images/cats/mir.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 16.06.2020 05:57
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/mir.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 16.06.2020 05:57
![Konu](/tpl/images/cats/mat.png)