0% found this document useful (0 votes)
9 views1 page

Test 3

Uploaded by

syedshahbaxali05
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Test 3

Uploaded by

syedshahbaxali05
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

namespace Test_3

{
internal class Program
{
static void Main(string[] args)
{

{
string correctUsername = "Ali";
string correctPassword = "ali123";

Console.Write("Enter your username: ");


string username = Console.ReadLine();

Console.Write("Enter your password: ");


string password = Console.ReadLine();

if (username == correctUsername && password == correctPassword)


{
Console.WriteLine("*");
Console.WriteLine("**");
Console.WriteLine("***");
Console.WriteLine("****");
Console.WriteLine("*****");

}
else
{
Console.WriteLine("Access denied. Incorrect username or
password.");
}
}
}

}
}

You might also like