[ create a new paste ] login | about

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

C, pasted on May 16:
1
2
3
4
5
6
7
8
9
10
#include<stdio.h>

int main(void)
{
float f = 1.0;

for(;f>0;f-=0.1)
printf("%f\n",f);
return 0;
}


Output:
1
2
3
4
5
6
7
8
9
10
1.000000
0.900000
0.800000
0.700000
0.600000
0.500000
0.400000
0.300000
0.200000
0.100000


Create a new paste based on this one


Comments: