Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program to find the largest digit in a four digit number [1000..9999]. Read the number from the user, find the largest digit and
Write a program to find the largest digit in a four digit number [1000..9999].
Read the number from the user, find the largest digit and print it. For example,
if the number is 2583, largest digit is 8
if the number is 1234, largest digit is 4
if the number is 1111, largest digit is 1
You can assume that the user enters a 4 digit number. You do not need to use loops
for this problem. Name your program recitation1.c
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started