write a program that accept 3 numbers.print the smallest and largest number. how we write it by nested if condition?
alxanderajon 0 Newbie Poster
Recommended Answers
Jump to Postif (firstNumber is smaller than second number) { if (firstNumber is smaller than third number) { // firstNumber is the smallest. Do something } }
All 2 Replies
Moschops 683 Practically a Master Poster Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.