[ create a new paste ] login | about

Link: http://codepad.org/Ii3Za1nX    [ raw code | output | fork ]

C, pasted on Jun 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
void main()
{
float a,b,t;
scanf("%f,%f",&a,&b);
if(a>b)
{
t=a;
a=b;
b=t;
}
printf("%5.2f,%5.2f\n",a,b);
}


Output:
1
 0.00,  nan


Create a new paste based on this one


Comments: