Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Promoted
how may i compare between some numbers and find smallest number in"C++"?
1 Answer
Relevance
- HanzLv 48 years agoFavorite Answer
you can put the numbers in array
and go through the loop using a for loop
in the for loop ,
you want to compare 2 items of the array at a time so the lowest gets
assigned to variable that contains the lowest number so far
when loop is done, you get the smallest number
Still have questions? Get your answers by asking now.