[ create a new paste ] login | about

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

C, pasted on Nov 17:
1
2
3
4
5
6
7
8
9
10
11
12
#include<stdio.h>

int main(void){
     int i;
     float x;

     printf("Size of float: %d             bytes\n",sizeof(f             loat));

     for(i=1,x=1.0;i<200;i++,          x *=2.0,x+=1.0){

      printf("%3d\t%f\n",i,x);     }
}


Create a new paste based on this one


Comments: