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
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
Math,
14 days ago
Science,
14 days ago
Hindi,
29 days ago
Political Science,
29 days ago
Social Sciences,
8 months ago
Math,
8 months ago