+ 6

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

27th Dec 2020, 3:02 PM
VṢtēphen
VṢtēphen - avatar
1 Answer
+ 8
S†ʒphʒŋ Use Regex or use inbuilt methods to check uppercase and lowercase letters, numbers.
27th Dec 2020, 3:43 PM
A͢J
A͢J - avatar