0
In C++Define two functions to print the maximum and the minimum number respectively among three numbers entered by user.??
Plz help
30 odpowiedzi
+ 7
The typical way to get a minimum for example is to create a variable with the first value of your list of values.
Then you loop over the rest of your list and check for every value, if it is lower than your stored value. If it is, you overwrite the variable with the lower value.
+ 2
Don't give out full codes - students won't learn, and teachers will be sad!
+ 1
Please show us your attempt.
+ 1
HRITIK.DIYUNDI, why don't you show us your failed attempt?
+ 1
Alright, and now the same with 100 values please.
+ 1
Please give it a serious try with the method I explained before just letting other people do your work.
+ 1
I gave you the method up there. Please try to implement it.
+ 1
HonFu OK I try
+ 1
Mùķę§h, why don't you let him try now?
+ 1
HRITIK.DIYUNDI , hi. You have to look at my code named minmax_2, if you want. Maybe it will help you.
+ 1
Maksat Ramazanov
Your code is In phyton
And
I am talking about C++
However
Thanks for the suggestion
+ 1
Program
0
I have no idea how to perform this program
0
would you please
Create a program
For this ?
Bcoz i tried with loop but
There is some place my condition become false ..
0
Ohk .
0
only for maximum value
0
HonFu i don't remember how to
Perform with 100 values
Can u give some idea please
0
Mùķę§h thanks