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;"}
3 odpowiedzi
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