Creating Simple Console App (For Online Voting)

      static void Main(string[] args)

        {

              bool isyesno = VoterPart();

            if (isyesno==true)

            {

                Console.WriteLine("Your Vote is Submitted.Thanks");

            }

            else

            {

                VoterPart();

            }

        }

        static bool VoterPart()

        {

            int Id;

            int Voterid;

            string Name;

            string country, state, city, panchayat;

            int Aadhar, PanNo;

            Console.WriteLine("Please Enter Your Voter ID");

            Voterid = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("What is your name?");

            Name = Console.ReadLine();

            var currentDate = DateTime.Now;

            Console.WriteLine("Please Enter Your State,City,Panchayat");

            state = Console.ReadLine();

            city = Console.ReadLine();

            panchayat = Console.ReadLine();

            Console.WriteLine("Hello " + Name + "," + currentDate + "Welcome to our Online Voting Portal. Your Voter Id And Other Details." +  "Plz Verify." + Voterid + "," + state + "," + city + "," + panchayat);

           Console.WriteLine("If Yes,Press any key to Submit Your Vote");

            Console.ReadKey(true);

      return true;

    

Comments

Popular posts from this blog

Angular Application