hey guys i got this iece of code on a program i am writing, and i was jus twondering if you could help me to convert it so it uses the conditional operator to make it into a 1 line code,
cheers
int total, start, stop, increment;
if (total <= start)
increment = 0;
else if (total >= start && total < stop)
increment = total - start;
else
increment = stop - start;
cheers again