Hello I'm working on this final project. I need to create an ATM program with a unique pin code. However every time I run the p I have done 3 hours of researching and I've decided to just ask. What am I doing wrong that it's just running the do while 3 times whenever I enter a 4 digit pin?
void Pin()
{
do
{
printf("\n\t Please enter your 4 digit PIN \n ");
scanf_s("%[^\n]\n", &pin);
*Count = *Count + 1;
if (*Count >= 3)
{
printf("Sorry you can't continue, contact your bank for assistance!\n");
}
}while(strlen(pin) != 4 && *Count < 3);
system("pause");
}