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"); } } } }

17th Mar 2021, 4:39 AM
Shahid Jani
Shahid Jani - avatar
2 Respuestas
+ 1
please use code playground to share your code. this will provide easy running, syntax highlighting, peogramming language ID, and insurance against truncation.
17th Mar 2021, 6:05 AM
Wilbur Jaywright
Wilbur Jaywright - avatar
+ 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. #)
17th Mar 2021, 7:32 AM
John Doe