subject
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
Answers: 1

Other questions on the subject: Mathematics

image
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
Mathematics, 21.06.2019 17:30, Eylul30
Acircle has a radius of 5/6 units and is centered at (3.6, 7.8) write the equation of this circle
Answers: 1
image
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
image
Mathematics, 21.06.2019 20:00, munch1239
Evaluate the discriminant of each equation. tell how many solutions each equation has and whether the solutions are real or imaginary. x^2 - 4x - 5 = 0
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
Mathematics, 16.06.2020 05:57