Question: I cant figure this out. Can I get some help programing this in C. First digit - Find the first digit of an integer value
I cant figure this out. Can I get some help programing this in C.
First digit - Find the first digit of an integer value This program should read a single integer input value and then print the value of its first digit. For example, if the input value is 42, then the program should print the output Other examples: Input Output 1331 1 87433 8 462 4 90125 9 Hints Wi l while loop) . If n is an integer value, then n/10 is an integer whose decimal representation is the same as n's except that the rightmost digit is removed (e.g., if n is 373, then n/10 is 37) . Think about what loop condition will let the program know that it ha:s
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
