[ create a new paste ] login | about

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

C, pasted on Nov 8:
1
2
3
4
5
6
7
8
#include <math.h> 
#include <stdio.h> 
int main(void) { 
double x = 4.0, result; 
result = sqrt(x); 
printf("The square root of %lf is %lfn", x, result); 
return 0; 
} 


Output:
1
The square root of 4.000000 is 2.000000n


Create a new paste based on this one


Comments: