If you have not noticed the tricky part here is the assignment of your ssmallest variable. You may never set this if num1 is never less than smallest again, so you will not get back into your if block. So try this additional if condition:
Code:if ((num1 < ssmallest) && (num1 > smallest))
{
ssmallest = num1;
}