I need to test the following code fragment for the variable num. For me to completely test all branches, would I use 2 values of num?
How many values of the variable num must by used to completely test all branches of the following code fragment?
if (num > 0 )
if (value < 25 )
{
value = 10 * num;
if ( num < 12 )
value = value / 10;
} / * if sum * /
else value = 20 * num;
else value = 30 * num;
Thanks!