If and Else If Statement in C#

aaaaaaaaaaaaaaaaa

If and Else If Statement Checking Names like Password

Program

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            String aa; //I use 'aa' for string value..
            Console.Write("Enter Your name Please: ");
            aa = Console.ReadLine(); //when user entering name then assigning to 'aa'.
            if (aa == "Bilal") //checking if 'aa' value equal to 'Bilal' then
                Console.Write("How Are U Bilal "); //print this.
            else if (aa == "Khan") //else if 'aa' value equal to 'Khan' then
                Console.Write("How Are U Khan"); //print this.
            else if (aa == "Afridi")
                Console.Write("How Are U Afridi");
            else //otherwise
                Console.Write("Invalid Entery"); //print this.
            Console.ReadKey();
        }
    }
}
Output
Hello World!

If Else Statement Checking Name Using OR Operator

Program

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("Enter Your Name:  ");
            string name = Console.ReadLine();
			  //if 'name' value equal to 'Bilal' OR 'Amir' OR 'Zulfi' OR 'Huzaif' then
            if (name.Equals("Bilal") || name.Equals("Amir") || name.Equals("Zulfi") || name.Equals("Huzaif"))
            {
                Console.WriteLine("U R Project Director in IT Park!!!"); //print this.
            } //else if 'name' value equal to 'Nawaz' OR 'Zaheer' OR 'Inam' OR 'Ali' then
            else if (name.Equals("Nawaz") || name.Equals("Zaheer") || name.Equals("Inam") || name.Equals("Ali"))
            {
                Console.WriteLine("U R Worker in IT Park!!"); print this.
            }
            else //if not in Above then
            {
                Console.WriteLine("I Don't Know U!"); //print this.
            }
            Console.ReadKey(); //used for Breaking Screen.
        }
    }
}
Output
Hello World!

If Else Statement Checking Name Using AND Operator

Program

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("Enter Your Name:  ");
            string name = Console.ReadLine();
            Console.Write("Enter Your Roll No:  ");
            int rolno = Int32.Parse(Console.ReadLine());
            Console.Write("Enter Your Registration No:  ");
            int regno = Int32.Parse(Console.ReadLine());
            Console.Write("Enter Your Code:  ");
            int code = Int32.Parse(Console.ReadLine());
			 //if 'name' value equal to 'Bilal' And 'rolno' value equal to 13 And 'regno' value equal to
			   //120122067 And 'code' value equal to '12345' then
            if (name.Equals("Bilal") && rolno.Equals(13) && regno.Equals(120122067) && code.Equals(12345))
            {
                Console.WriteLine("U R Bilal!"); //print this.
            } //if 'name' value equal to 'Amir' And 'rolno' value equal to 26 And 'regno' value equal to
			 //120122012 And 'code' value equal to '54321' then
            else if (name.Equals("Amir") && rolno.Equals(26) && regno.Equals(120122012) && code.Equals(54321))
            {
                Console.WriteLine("U R Amir!"); //print this.
            }
            else //if not in Above then
            {
                Console.WriteLine("I Don't Know U!"); //print this.
            }
            Console.ReadKey();
        }
    }
}
Output
Hello
World!