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
Physics,
2 hours ago
Science,
2 hours ago
English,
2 hours ago
Hindi,
5 hours ago
Political Science,
5 hours ago
Social Sciences,
7 months ago
Math,
7 months ago