[ create a new paste ] login | about

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

C++, pasted on May 10:
1
2
3
4
5
6
7
8
9
10
#include <cmath>
#include <iostream>
using namespace std;

int main(){
    float x = 2.5;
    float y = 0.35;
    cout<<exp(fabs(x - y))<<endl;
    return 0;
}


Output:
1
8.58486


Create a new paste based on this one


Comments: