OK this idea came from General from his/her post I want to catch the "idea" !
so I started to work on it and got stuck but I don't know why my code does work here is an example
well can I enter a 4 digit number(int) into an input stream and have like a loop of some sort read the each number individually to see if there any six's in the 4 digit number the use has enter?
Aren't you doing it already?
If you want to read decimal ints you could use >> but it would read them separated by whitespaces ( eg: 1236 will produce a single number, not four digits )
What Bazzy is trying to say your inputting char and then comparing the ASCII code of the char and the int in this case the number 6. Check your declaration of c variable.