Computer Science, asked by satyam10jun2005, 5 hours ago

Define a function int maxDigit(int num)- to find and return the greatest digit from the argument value num.
Also, write a function void result() by passing parameters to print the greatest digit.​

Answers

Answered by bhawikjindal
0

Answer:

Input : N = 2346  

Output : 6 2  

6 is the largest digit and 2 is samllest

Input : N = 5  

Output : 5 5

Explanation:

Similar questions