Computer Science, asked by priya8433, 2 months ago

write a program to find smallest digit of a number​

Answers

Answered by Anonymous
1

Answer:

The Modulus operator is used to extract the digit at the end of a given number. We have written two methods to Search for the Smallest Digit in a Number which includes a While Loop and a For Loop. Here, we have initialized the variable small with 10 as it is the highest value any digit in a number can be.

Similar questions