"Write a program to read two float numbers and try to sort them in ascending order" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

"Write a program to read two float numbers and try to sort them in ascending order"

27th Dec 2017, 3:02 PM
فارس الوطن
فارس الوطن - avatar
3 Answers
+ 3
Could you please correct your question a bit? Anyway, I will give you a way to do it. First input 2 numbers using cin statement. Then test them using if in this way: if(a>b) cout<<b; else cout<<a; And you're done!
27th Dec 2017, 3:09 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
0
read two float numbers,more details
27th Dec 2017, 3:08 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
0
ممكن حل هذا سؤال "Write a program to read two float numbers and try to sort them in ascending order"
27th Dec 2017, 3:46 PM
فارس الوطن
فارس الوطن - avatar