if number1.to_i != number2.to_i and number2.to_i != number3.to_i and number1.to_i != number3.to_i then puts(number1.to_i + number2.to_i + number3.to_i) elsif number1.to_i == number2.to_i and number1.to_i != number3.to_i then puts(number3.to_i) elsif number1.to_i == number3.to_i and number1.to_i != number2.to_i then puts(number2.to_i) elsif number2.to_i == number3.to_i and number2.to_i != number1.to_i then puts(number1.to_i) elsif number1.to_i == number2.to_i and number2.to_i == number3.to_i and number1.to_i == number3.to_i then puts "0"

I get the sum of the three integers, but nothing keeps all three integers from duplicating or being used when they do.

This post has been edited by **Skaggles**: 23 February 2012 - 01:30 PM

Reason for edit:: Added code tags.