0

Given the declarations:

int n;

char ch1;

char ch2;

and given that n contains a two-digit number, translate n into two single characters such that ch1 holds the higher-order digit, and ch2 holds the lower-order digit.

For example, if n=59, ch1 would equal '5', and ch2 would equal '9'. Then output the two digits as characters in the same order as the original numbers.

(Hint: Consider how you might use the / and % operators in your solution)

Any ideas? Thanks.