0

How can I ask for quadruple number on if statement?

For example : cout<<"choose your password"; cin>>password; I want to write here if password that you chooseed is bigger than quadruple ( a number witch have 4 number like👉1111) it would be unable👉if (password>👉...........👈I don't know what should I write here){ cout <<" the password is unable;"}

29th Dec 2018, 7:15 PM
Erfan Yousefi
1 ответ
0
take password one character at a time in a for loop and have a counter variable like c++ in the loop. only proceed if c==4
29th Dec 2018, 8:55 PM
Asirap