Answers for "calculate sqrt c++"

C++
0

sqrt in c++

#include <iostream>
#include <cmath>
using namespace std;

int main()
{
	int x = 625;
	int result = sqrt(x);
	cout << "Square root of " << x << " is " << result << endl;
	return 0;
}
Posted by: Guest on June-05-2021

Browse Popular Code Answers by Language