[ create a new paste ] login | about

Link: http://codepad.org/2fVQuu3l    [ 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
2
3
In function 'main':
Line 10: error: expected ';' before 'b'
Line 3: warning: return type of 'main' is not 'int'


Create a new paste based on this one


Comments: