[ create a new paste ] login | about

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

wiso - C++, pasted on Jul 10:
1
2
3
4
5
6
7
8
9
10
#include <cmath>
#include <iostream>

using namespace std;

int main()
{
   cout << abs(1.123) << endl;
   cout << fabs(1.123) << endl;
}


Output:
1
2
1.123
1.123


Create a new paste based on this one


Comments: