Zebra0.com

java conditionalFinds the smallest

Finds the smallest

This example reads in two numbers and finds the smallest. Notice that the result of the conditional operator is assigned to small.