5 Antworten
+ 11
Hmm, string input for both names. Sum up all ASCII values of the characters in each name and store into two variables, sum1 and sum2. Divide the smaller value with the larger value to get a float, multiply by 100 and store into love_p. This would be the love percentage.
+ 10
Interesting. What would be the algorithm used to determine 'love percentage' though? Or are we free to implement any kind of algorithm?
+ 1
I want it to be the same every time though
+ 1
What I am asking for is an algorithm, go crazy
+ 1
This sounds good, thank you