Cod sursă (job #115714)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Sqrt (clasele 9-10) | Compilator | cpp | 0,19 kb |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 9 feb. 2015 21:31:27 | Scor | 0 |
#include<fstream>
#include<cmath>
using namespace std;
int main()
{
ifstream f("sqrt.in");
ofstream g("sqrt.out");
int N,X=0;
f >>N;
X==int(sqrt(N));
g<<X;
}