- 2
"Write a program to read two float numbers and try to sort them in ascending order"
4 Respostas
+ 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"