Hey guys, well i am having a little trouble with a username and password login program i made because the help bit at the end does not work.
Have a look:
Code:
#include<stdio.h>
int main()
{
int user;
int pass;
int help;
printf("Enter Your Username: ");
scanf("%d", &user);
if(user == 000001)
printf("Enter Your Password: ");
scanf("%d", &pass);
if(pass == 000001)
printf("Login Successful!");
printf("\n");
printf("\n1.Help");
printf("\n2.Exit");
printf("\nCommand: ");
scanf("%d", help);
if(help == 1)
printf("This is a programe made to test a username and password login interface.\n Made By Name");
getch();
getch();
getch();
}
If you could help me i would really appreciate it