Answers for "c sqrt"

C
5

root in C

#include <stdio.h>
#include <math.h>

int main()
{
    double num = 6, squareRoot;

    squareRoot =  sqrt(num);
    printf("Square root of %lf =  %lf", num, squareRoot);

    return 0;
}
Posted by: Guest on June-29-2020
1

c math sqrt function

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

// Output: Square root of 25 = 5
Posted by: Guest on October-09-2021
1

c sqrt

double sqrt(double arg);
Posted by: Guest on May-14-2020

Code answers related to "C"

Browse Popular Code Answers by Language