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"

1st Jan 2018, 9:12 AM
فارس الوطن
فارس الوطن - avatar
1 Respuesta
+ 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;} }
1st Jan 2018, 9:20 AM
NAGANDLA.LEELA PAVAN KUMAR
NAGANDLA.LEELA PAVAN KUMAR - avatar