[ create a new paste ] login | about

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

C++, pasted on May 19:
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>

int main()
{
    int a = 1;
    int b = -2;
    int c = 1;
    std::cout<< (-b + sqrt(b^2 - 4*a*c))/(2*a);

    return 0;
}


Output:
1
1


Create a new paste based on this one


Comments: