how to find smallest number among 10 numbers in a if loop?
Show older comments
Hi all I need find the smallest number among 10 numbers using if loop or for loop.Please need help.
1 Comment
Walter Roberson
on 22 Apr 2013
There is no such thing as an "if loop". "if" executes the body exactly 0 or 1 times, which is not a loop; "for loop" and "while" (usually) execute multiple times.
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!