[ create a new paste ] login | about

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

C, pasted on Feb 17:
1
2
3
4
5
6
7
8
9
10
#include<stdio.h>
int main()
{
double a=0.7, b=1.7, c=1.8, d=2.8;
printf("%.10f %.10f\n",0.7, a);
printf("%.10f %.10f\n",1.7, b);
printf("%.10f %.10f\n",1.8, c);
printf("%.10f %.10f\n",2.8, d);
return 0;
}


Output:
1
2
3
4
0.7000000000 0.7000000000
1.7000000000 1.7000000000
1.8000000000 1.8000000000
2.8000000000 2.8000000000


Create a new paste based on this one


Comments: