Answer to Question #314567 in C# for jrs.

Question #314567

Write an algorithm using pseudocode to verify that a password's length exceeds 8 characters, but is shorter than 12 characters. (INCLUSIVE 8-12)


1
Expert's answer
2022-03-19T15:01:32-0400


using System;
using System.Collections.Generic;
using System.Globalization;


namespace App
{


    class Program
    {


        static void Main(string[] args)
        {
            Console.Write("Enter password: ");
            string password=Console.ReadLine();
            if (password.Length >= 8 && password.Length <= 12)
            {
                Console.WriteLine("Correct password");
            }
            else {
                Console.WriteLine("Wrong password");
            }




            Console.ReadLine();
        }


    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS