rahul raj srivastava


{ City } jaipur
< Country > india
* Profession *
User No # 79384
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 10
Users Marked my Answers as Wrong # 0
Questions / { rahul raj srivastava }
Questions Answers Category Views Company eMail




Answers / { rahul raj srivastava }

Question { 3368 }

How can we write an algorithm for show max and min from two
integer inputs ? without using if() , without any
functions ...


Answer

we can find it with da help of conditional operator(?:)
if a and b are input then
max=a>b?a:b
we can find maximum

Is This Answer Correct ?    10 Yes 0 No