Create a program to enter Bahria university, You can only enter if you’re a student or faculty or employee. in c#

 using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;


namespace cp_theory_task_paractise

{

    class Program

    {

        static void Main(string[] args)

        {

                 string type;

            Console.WriteLine("\t\tWelcome to Bahria University Entrance\n");

            Console.WriteLine("Enter your role:");

            type = string.Format(Console.ReadLine().ToLower());

            if (type=="student" || type=="faculty" || type=="employee")

            {

                Console.WriteLine("You are allowed to enter Bahria University.\n");

                Console.WriteLine("Beacause your admit as a {0} in this University.\n",type);

            }

            else

            {

                Console.WriteLine("Not Allowed! Only students, faculty, and employees are allowed.");      

            }


        }

    }

}

             

Comments

Popular posts from this blog

Vertical and Reverse Paramid in c# using loop.

Calculator in c# using Static Methods

Calculator in c# using Method void method