Search
 
SCRIPT & CODE EXAMPLE
 

CPP

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;
}
Comment

c++ squaroot

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

int main() {
  cout << "Square root of 25 = ";
   
  // print the square root of 25
  cout << sqrt(25);

  return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: intersection.cpp 
Cpp :: c++ char array size 
Cpp :: convert integer to string in c++ 
Cpp :: c++ hello world linux 
Cpp :: c++ hash combine 
Cpp :: c++ replace 
Cpp :: c++ vector remove all duplicate elements 
Cpp :: dynamic memory c++ 
Cpp :: reversing a string in c++ 
Cpp :: c++ saying hello world 
Cpp :: how to initialize 2d array with values c++ 
Cpp :: cpp define 
Cpp :: c++ program to convert character to ascii 
Cpp :: char to string c++ 
Cpp :: two elements with difference K in c++ 
Cpp :: c++ changing string to double 
Cpp :: heap buffer overflow in c 
Cpp :: lower bound and upper bound in c++ 
Cpp :: how to sort array in c++ 
Cpp :: rock paper scissor c++ 
Cpp :: text color c++ 
Cpp :: C++ Program to Find the Range of Data Types using Macro Constants 
Cpp :: copy constructor c++ syntax 
Cpp :: size of string c++ 
Cpp :: Array declaration by specifying the size in C++ 
Cpp :: C++ rename function 
Cpp :: how to find factorial of number in c++ 
Cpp :: how to convert char to int in c++ 
Cpp :: if not c++ 
Cpp :: ? in cpp 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =