Junaid Mahmud wrote:Hey! I am trying to get the length of characters that the user prints. If the user prints a length less than 5 or greater than 5 It should say "Enter a valid 5 digit number" If the length is 5 I want it to go on the next question. Thanks!
Junaid Mahmud wrote:Yeah It doesn't work
And:Junilu Lacar wrote:These are the relevant lines of code:...
Junaid Mahmud wrote:
Junaid Mahmud wrote:I am still having troubles as I cant get it to work. This is so exhausting lol.
Junaid Mahmud wrote:I changed the return to 5 because I that is length of the card number that is required. This made the code print out every number and ignores the code that I made for if length less than 5 "Enter a 5 digit code"
NoJunaid Mahmud wrote:. . . Am I almost there? . . .
Junaid Mahmud wrote:I give up! I have been trying to do this one thing for the past 6 hours and cant figure it out.
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|