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;"}
1 Answer
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