I am working on a program that requires that if a number contains a specific digit it does something.
Example: 13 - Contains the digit 3 so it prints "Hi".
Wheras 14,15,16, etc. do not contain the number 3 so they get printed on the screen.
Any ideas would be helpful.
perhaps a series of for loops, each one minusing a different constant from 0 - 9, then run a secondfor loop in each one, where the number 10 is constantly minused, have another conditional that returns true if it ever equals exactly 0 and false if the number is ever below 0. Seems messy as all hell on earth so I'm sure there's another way :)