0
How do I solve this quiz? Comparison Operators
Comparison Operators Reset account passwords should not be the same as the old password. Task Write a program that takes old and new passwords as inputs and outputs to the console the boolean value (true or false) that shows whether or not they match. Sample Input hl8792m hl8792m Sample Output true function main() { var oldPass = readLine(); var newPass = readLine(); // Your code goes here Hi, can anyone please assist in solving this? I don't get it!
1 Réponse
+ 6
Which language, Java, Kotlin?
println( oldPass == newPass)
This should output the comparison value (true / false) of the 2 variables