what is the c++ code for folding hashing function?


example:
enter number:12345
enter folding combination: 12+34+5
12+34+5
=51/*get the last two digits*/
final answer=51

example 2:
enter number:409786
enter folding combination:1234+567
409+786
=1195/*get the last two digits*/
the final answer is:95
Post code. We don't do people's homework for them.
Topic archived. No new replies allowed.