I'm working on a program that takes a seed number and produces a series of random numbers whose last digits form a lottery number. In one example, the last digits of the first four numbers are used (3 4 3 1) but in another the last digits of only the first three are used (5 7 2), so I'm converting the integers to characters to utilize the space in the ASCII table(so that can be the fourth digit).
My first major dead end is figuring out how to extract those last integer values and turn them into characters. So I'd really appreciate help with that. Keep in mind: I can't use if/else statements or relational operators. This program makes use of selection through calculation.
Aucun commentaire:
Enregistrer un commentaire