Please help me to make a program in turbo c that will let you guess the password. but if it is wrong the program will ask you do you want to continue y or n ,if y it will display again what is the password if no end the program

Recommended Answers

All 3 Replies

If by "help" you mean "do it for me" then no. If you want actual assistance rather than a hand out, then please ask a specific question.

Here's the pseudocode:

function getpass()
    char choice
    char passwd[lenght]
        @ ask for password
        @ ask for a repeat
    while choice = 'n'


Since there is no do_while a simple end_do would be clearer. ;-)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.