0
How to print strong if password have these "÷/×%#&#&#"
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { string pass =Console.ReadLine(); if (pass.Contain = "*,@,#,$,%,+,=,_,!@,,`,~,-,',:,123456789'") { Console.WriteLine("strong"); // }else if (pass.Contain ="123456789") // { // Console.WriteLine ("normal"); }else { Console .WriteLine ("week"); } } } }
2 odpowiedzi
+ 1
please use code playground to share your code. this will provide easy running, syntax highlighting, peogramming language ID, and insurance against truncation.
+ 1
1. Please share your code as a code and not as text.
2. It‘s not clear if you want the password to contain at least one of the characters, all of the characters in that exact order, or all of the characters in any order. especially since the string contqins some chatacters multiple times (e.g. #)