1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

programming

Discussion in 'C' started by uday jha, Aug 28, 2010.

  1. uday jha

    uday jha New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    how can i write a program to print username and password if the minimum and maximum length of password are 5-15 respectively. please give me answer as soon as possible
     
  2. Prakhar14

    Prakhar14 New Member

    Joined:
    Apr 27, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    The Algorithm is like this:
    1. Enter the password and save it to a string.
    2. Now check if the string length is less than 5 or greater then 15.
    3. If length is not as you mentioned ask the user to enter the password again.
     

Share This Page