[ create a new paste ] login | about

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

C, pasted on Nov 14:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream.h>
#include <string.h>


int main()   
  {
  short t;
  float waarde;

  waarde = 0;
  for (t=0;t<100;t++)
    {
    waarde += (1-waarde)/256;
    printf('teller = %d waarde = %1.4f',t,waarde);
    };
  };


Output:
1
2
3
4
Line 21: error: iostream.h: No such file or directory
Line 11: warning: character constant too long for its type
In function 'main':
Line 14: warning: passing argument 1 of 'printf' makes pointer from integer without a cast


Create a new paste based on this one


Comments: