- 2
"Write a program to read two float numbers and try to sort them in ascending order"
4 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!
0
read two float numbers,more details
0
Ù
Ù
ÙÙ ŰÙ Ù۰ۧ ŰłŰ€Ű§Ù "Write a program to read two float numbers and try to sort them in ascending order"