Pls help | Sololearn: Learn to code for FREE!


Pls help

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /* Challenge : Password Validator input a string (password: Domces223) and then check if the pass is valid or not. pass has to have: 1.Longer from 6 to 20 characters 2.atleast one uppercase letter (A-Z) 3.a number (1-9) 4.atleast one lowercase letter (a-z) if it is valid, print True. else print False. i think this will be harder i could give the hardest one, but it will ruin the fun good luck... you'll need it */ namespace SoloLearn { class Program { static void Main(string[] args) { char[] upperCases = new char[26]; char[] lowerCases = new char[26]; char[] numbers = new char[9]; for(int j=0;j<upperCases.Length;j++) upperCases[j]=(char)(j+65); for(int j=0;j<lowerCases.Length;j++) lowerCases[j]=(char)(j+97); for(int j=0;j<numbe


12/27/2020 3:02:57 PM


1 Answer

New Answer


S†ʒphʒŋ Use Regex or use inbuilt methods to check uppercase and lowercase letters, numbers.