0

Guys why it is print "No output"

If you want understand,put AB,im trying do a code that Cipher an word Here https://code.sololearn.com/c3EAcKwc61fh/?ref=app

16th May 2021, 8:19 PM
Katdotbrush
Katdotbrush - avatar
4 Answers
+ 3
You check only for "A" actually. If you type "AB" isnt equal to "A" so it doesn't print anything This may help you make a cipher https://code.sololearn.com/cp8v9Oyj1T2o/?ref=app
16th May 2021, 10:37 PM
john ds
john ds - avatar
+ 1
Cat Cute 🐉 If x == "A" then how x would be equal to "B" ?
16th May 2021, 8:27 PM
A͢J
A͢J - avatar
0
Check this. If(x==“B”) is inside another if. If x is A it will never be B. you can add it to do something when it is NOT A or B. and remember that “a” is not the same as “A”
16th May 2021, 8:29 PM
Eze
0
if ("AB" == "A"){ // false Console.Write("@"); } if ("AB" == "B"){ // false Console.Write(";"); } Console.Write("🤔");
16th May 2021, 8:33 PM
Solo
Solo - avatar