please help

#include
#include
#include

int main()
{ using namespace std;
int acc_num =1234 ;
int ACC;
char pn ;
int balance = 10000 ;
int deposite ;
int withdraw ;
char *pin_num = "111";
int i;
system("cls");
printf("
---------------------------------");
printf("
- -");
printf("
- WELCOME TO MEE BANK -");
printf("
- HABSIGUDA,HYDERABAD -");
printf("
- 040-27158640 -");
printf("
---------------------------------");
printf("
PLEASE ENTER ACCOUNT NUMBER ");
scanf("%d",&ACC);
printf("
PLEASE ENTER PIN NUMBER ");
for ( i = 0; i<4; ++i )
{
pn= getch();
pn != '
';;
printf("*");
}

if ( ACC== acc_num && pn == *pin_num)
{
printf("
LOGIN SUCCESS.........");
}
else
{
printf("
LOGIN FAILED.........");
}
system("pause");
return 0;


}

This is an assingment program About an ATM machine
My pin 111
when the user is entering 111 and press enter it is outputting 4 asteriks and is saying login failed
when i press enter its reading character... :(

Comments

  • Some of the areas in which we provide Programming Assignment Help, Homework Help are:

    Programming languages
    CSS
    Elements of C
    JavaScript
    JAVA
    XML Services
    Multimedia
    Database
    Networks
    DBMS homework help

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion