This is a simple basic program of c++ using for loop. In for loop we have 3 terms to explain . Initialization, incrementation or decrementation , checking inequalities. So using for loop considering every digit each time we check the conditions insi...See more
de the loop and if it is true we print that digit.
Answer the Question