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
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"
Junaid 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.
this llama doesn't want your drama, he just wants this tiny ad for his mama
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton