can u give me anither method for max and min number . i am not able to understand these.
Max and min number
hi @ssmit_joshi it is quite simple and straightforward, what did you not understand? Tell me so I can help you understand that part
Can u give me another method for understanding this max and min no.
@ssmit_joshi what other method…there is one method only just compare all the numbers and find the max and min among them
programming can be do with many formulas this is not possible that max and min have only method i cant understand so pls help
@ssmit_joshi this is not a very complex problem that it will have multiple solutions.
Traverse the whole array, compare each value, and find the smallest/largest value amongst these.
I am not getting what is so hard to understand about this? And if there is any problem with the code tell me I will clarify that. But there is no alternate method for this, so you will have to understand this only.
how can we travers the array array is not used here it is without array
min so far = max andall that i cant understand
@ssmit_joshi here n values were taken input inside for loop. They were not stored in any array but it does not matter because the basic idea remains the same. N values are taken input and then compared. Is it clear now?
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.