Loop: Minimum

Assalamu Alaikum. Hope you all are well by the grace of Almighty ALLAH. Today we learn how to find out the minimum from the n numbers.Take a look at the problem.

Problem:  Write a program to find out the minimum from the n numbers.

Solution:



We can also do this program by the following way. Take a look at the program.


We can also do this program by the following way.


In the example above there is no need to initialize min.

Thank you all...:)



0 comments:

Post a Comment