About 6,830,000 results
Open links in new tab
  1. sqrt() Function in C - GeeksforGeeks

    Jun 25, 2024 · sqrt() function in C is a predefined function in the math.h library used to calculate the square root of a given number. To use this function, we must include the <math.h> header …

  2. C program to find square root of a given number - GeeksforGeeks

    Nov 23, 2022 · Given a number N, the task is to write a C program to find the square root of the given number N. Examples: Method 1: Using inbuilt sqrt () function: The sqrt () function returns …

  3. C sqrt() - C Standard Library - Programiz

    The sqrt() function takes a single argument (in double) and returns its square root (also in double). [Mathematics] √x = sqrt(x) [In C Programming] The sqrt() function is defined in math.h header file.

  4. C programming sqrt function - Stack Overflow

    double x = 4.0, result; . result = sqrt(x); . printf("The square root of %lf is %lfn", x, result); . return 0; . This code does not work because it is taking the square root of a variable. If you change …

  5. sqrt() Function - C math.h - Syntax, Parameters, Examples

    The sqrt() function computes the square root of a given number and returns the positive square root. It provides support for different floating-point precisions and handles domain errors when …

  6. Square Root Program In C - Online Tutorials Library

    Square Root Program in C - Learn how to calculate the square root in C with this example program. Step-by-step explanation and code provided.

  7. C Program to Find Square Root of a Number using sqrt Function

    In this C program we will learn to find square root using sqrt function. We will first take a number as input from user using scanf function then calculate square root of number by calling sqrt …

  8. Demystifying the Sqrt() Function in C – TheLinuxCode

    Dec 27, 2023 · Square roots seem simple at first glance, but behind the scenes there‘s a lot more going on with the sqrt() function! As a long-time math whiz and C expert, let me guide you …

  9. sqrt in C/C++: calculating square root - codelessons.dev

    In this article, we will discuss the sqrt function, which is used to compute the square root of a number in C/C++. We will start with a few examples, and then proceed to create our own …

  10. Mastering the Square Root Function in C – A Comprehensive Guide

    There are various methods available to calculate the square root in C. In this section, we will introduce you to two common methods: the basic approximation method and the Newton …

  11. Some results have been removed
Refresh