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: ");