How to calculate the longest password in length from 5? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to calculate the longest password in length from 5?

17th Nov 2016, 11:28 PM
David
3 Answers
0
I'm sorry, what?
17th Nov 2016, 11:39 PM
Arthur Busser
Arthur Busser - avatar
0
not sure what you mean by 5 assuming you mean the seed value you can get random no.s from rand() turn it to string and concatenate with another random number until len(int password) <= your desired lenght
18th Nov 2016, 2:10 AM
Maxwell Miles
Maxwell Miles - avatar
0
Im looking for the program to calculate the longest password out of five seperate words and then print out that word e.g Password1: hello Password2 : two Password3: security Password4: four Password5: default Security is the longest password as it has the most characters. How do i get the program to calculate this and then print out that word
18th Nov 2016, 12:27 PM
David