TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mngaro Mwazenje
NA
80
13k
login credentials
Mar 17 2020 1:19 PM
i have the following code
how can i get the second user to login successfully
public
static
void
Main(
string
[] args)
{
string
username =
"alex"
;
string
password =
"sunshine"
;
string
username2 =
"emma"
;
string
password2=
"haskell"
;
Console.WriteLine(
"Enter username:"
);
string
input = Console.ReadLine();
Console.WriteLine(
"Enter password:"
);
string
input2 = Console.ReadLine();
if
(username == input)
{
if
(password == input2)
{
if
(username2==input)
{
if
(password2==input2)
{
Console.Write(
"You have successfully logged in!"
);
}
}
}
}
else
{
Console.Write(
"Incorrect username or password!"
);
}
Reply
Answers (
2
)
mdi between form1 and form3 ifi click form2 button
How would you setup backend database?