CSIAS
  • Blog
  • Contact
  • Login

Tag: library functions

How to use square root in C language

Posted on June 6, 2023June 6, 2023 by Ajaj Khan

program to use square root in C language


#include <stdio.h>
#include <math.h>
int main()
{
    double n, s;
    printf("Enter a number : ");
    scanf("%lf", &n);
    s = sqrt(n);
    printf("square root of %.2lf is %.2lf\n", n, s);
    return 0;
}

output


Enter a number : 36
square root of 36.00 is 6.00
Posted in C LanguageTagged library functionsLeave a Comment on How to use square root in C language

Recent Posts

  • How to use JavaScript Array keys()
  • How to use JavaScript Array lastIndexOf()
  • How to use JavaScript Array fill()
  • How to use JavaScript Array indexOf()
  • ASCII TABLE IN LOWERCASE IN JAVASCRIPT

Recent Comments

    Archives

    • July 2023
    • June 2023
    • May 2023
    • July 2021
    • February 2021
    • January 2021
    • December 2020
    • October 2020
    • June 2020
    • March 2020
    • January 2020
    • November 2019

    Categories

    • ….
    • Bagging
    • Boosting
    • C Language
    • C Programming
    • Classification
    • Clustering
    • Decision Tree
    • Downloads
    • Ensemble Technique
    • How To
    • Java
    • JavaScript
    • linear regression
    • Logistic Regression
    • Machine Learning
    • News
    • Optimization
    • Random Forest
    • Regression
    • Schema.org
    • Stacking
    • Unsupervised Learning
    • WordPress

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Proudly powered by WordPress | Theme: csias by Fahim Akhtar.