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
Chemistry,
1 month ago
Math,
1 month ago
Geography,
1 month ago
Hindi,
2 months ago
Political Science,
2 months ago
Social Sciences,
9 months ago
Math,
9 months ago