0
"Write a program to read two float numbers and try to sort them in ascending order"
"Write a program to read two float numbers and try to sort them in ascending order"
2 Answers
+ 2
#include<iostream.h>
using namespace std;
void main()
{
float a,b;
cin>>a>>b;
if(a>b){cout<<b<<a;}
else{cout<<a<<b;}
}