Beruflich Dokumente
Kultur Dokumente
============
Login condition
string Name;
int ROll_no;
int Age;
string section;
string University;
------------------------------------
multi Login
string username, userpassword;
label: //Creating label
Console.Write("\n\nEnter your login name:\t");
username = Console.ReadLine();
Console.Write("Enter your password:\t");
userpassword = Console.ReadLine();
try
{
if ((username == "sarath" || username == "arun") && (userpasswor
d == "me" || userpassword == "you"))
{
Console.WriteLine("\nLogin Successful.");
}
else
{
Console.WriteLine("\nUnauthorised Access. Aborting...");
}
Console.Write("\n\nPress Y or y for continue. Press N or n for E
xit:\t");
char ans = Convert.ToChar(Console.ReadLine());
if (ans == 'Y' || ans == 'y')
{
goto label; //goto label
}
else
{
Console.WriteLine("Press Enter for Aborting...");
Console.ReadLine();
return;
}
}
catch { }
-----------------------------------=
sarath condition
int range;
Console.WriteLine("Enter the Aim Point : ");
range = Int32.Parse(Console.ReadLine());
// 50-70 high //70-100 Prefect // 100< aim low