CrackingKeygenning and ProgrammingHelp with c-programming.....

09 Aug 2009, 20:32

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

Rating 0 Comments 1
killaa321
0
killaa321 28 Oct 2009, 15:00 #
use this

#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.
Reply

You have to login or register to post comments.

mevanga
mevanga
0 ♠ 0 ♣