I have been working on a pythagorean theorem calculator and am actually stuck on the final bit of code. What I am trying to do is check the values (integers) inside a listbox, remove duplicate number (both values), and input one of the values into a textbox.
Here is an example of what I am doing:
When the program runs, check listbox value #1 and listbox value #2, if listbox value #1 and #2 match (2 & 2), input that value (not both duplicates) into a variable, remove both of the duplicate values, continue checking the rest of the values, and finally multiply the leftover values. I am sure that sounds confusing. Here is what the final output will look like
Variable1 = 2 * 5
Variable2 = 3 * 7
I am sorry if that is difficult but I cannot figure out the proper syntax to get it working.
Thanks in advance for any help.