[ create a new paste ] login | about

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

C, pasted on Aug 13:
1
2
3
4
5
6
7
8
9
10
#include<stdio.h>
int main()
{
  double f,c;
  f=2.0;
  c=f*2;
  printf("f=%f\nc=%f\n",f,c);
  return 0;

}


Output:
1
2
f=2.000000
c=4.000000


Create a new paste based on this one


Comments: