old num sys:. new num sys:
1. 9
2. 8
3 7
4. 6
5. 5
6. 4
7. 3
8. 2
9. 1
Implement the following function:
int NewNumber(int n);
The function accepts a positive integer 'n' as its
argument. Implement the function to convert each
digit of the given number according to the new number
system and return the new integer number:
Assumption: Most significant digit of input number
can never be 9.
Example: 235
expected output:764
Answers
Answered by
0
Answer:
xjxjjzzjzjjvkvkckfkdk
Similar questions