How do I write a program in C that will ask the user to enter a PIN and if the PIN is entered 3 times wrongly the program will exit?
Thanx in advance........
Yours
Cracking → Keygenning and Programming → Help with c-programming.....09 Aug 2009, 20:32 You have to login or register to post comments. |


#include
#include
int main()
{
int i=0, c;
do
{
printf("Please enter a PIN");
scanf("%d", &c);
i++;
}
while(i<3);
system("pause");
}
i wont tell you the full answer but you will have to use if statement i believe one should work.