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
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;} }
1st Jan 2018, 9:20 AM
NAGANDLA.LEELA PAVAN KUMAR
NAGANDLA.LEELA PAVAN KUMAR - avatar