[ create a new paste ] login | about

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

C++, pasted on May 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>
#include <math.h>

int main(){

    float sum = 0;
    int c = -4;
    float x1 = 136.67;
    float x2 = 2.38;

    sum = c / (pow(abs(x1 - x2), 2));
    printf("%f %f %f",sum,x1,x2);

    return 0;
}


Output:
1
-0.000222 136.669998 2.380000


Create a new paste based on this one


Comments: