[ create a new paste ] login | about

Link: http://codepad.org/er0zkzxS    [ raw code | output | fork | 1 comment ]

C, pasted on Feb 17:
1
2
3
4
5
6
7
8
9
10
#include<stdio.h>
int main()
{
float 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.6999999881
1.7000000000 1.7000000477
1.8000000000 1.7999999523
2.8000000000 2.7999999523


Create a new paste based on this one


Comments:
posted by goyaltwinkle80@gmail.com on Jun 30
anyone please answer this
reply