Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
password program needed help. I have the code here. Thank you.
hello guys. i just would like to know if my program is correct according to the instruction below. If someone could answer this right away, please do reply me. My e-mail add is firstname.lastname@example.org or just reply to this forum. I'm gonna pass this assignment tomorrow. Thank you and more power.God bles you all.By the way, i'm using turbo c.
Create a program that will ask the user for a password. The password string will be concealed by showing only the character asterisk ('*'). There are only three tries and, after which the user still fails to determine the password, the program terminates. The program also terminates if the user pressed ESC key. Let the password be 10 characters long. In order to compare two strings, use the following function in STRING.H
where: str1 is the target string.
str2 is the source string.
This function returns the following values:
0 = when both strings are the same.
non-zero = when both strings are different.
here's my program:#include#include#include#define
printf("Login username: ");