Trying to get the welcome output after using 'abcd' as username and '1234' as password.
int main()
{
char username[5];
int password;
printf("username: \t");
scanf("%s", username);
printf("password: \t");
scanf(" %d", &password);
(( username=='abcd')&&(password==1234)?printf("\nwelcome"):printf("\nlogin failed"));
}