• Home
  • Contact us
  • C programs
  • submit program
  • Follow us on pinterest

Errorless C

This website is for c programming tutorials online.By this website you can learn c programming online.There are many c programming topics and Other programs for practice.There are also some projects created in c programming.

sqrt function

By: adarshsojitra on 22:30
Share it Please
Tweet
sqrt() function is used to calculate the square root of any numbers.it is included in math.h library.therefore we have to add "#include<math.h>".Let us see example.......

Example:

#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
float a=9,b=46;
clrscr();
printf("root of a is %f",sqrt(a));
printf("\nroot of b is %f",sqrt(b));
getch();
}
Email This BlogThis! Share to X Share to Facebook Share to Pinterest
Labels: E.sqrt function

C programming

  • First Program in C
  • About C programming
  • Compilers for C
  • Comments in C
  • Datatypes and variables
  • Rules to create Variables in C
  • Operators and Expressions
  • backslash characters
  • printf function
  • scanf function
  • getchar function
  • putchar function
  • gets function
  • puts function
  • Storage class specifiers
  • Constants in C
  • if else condition
  • Else if condition
  • Switch case
  • While loop
  • for loop
  • do while loop
  • break statement
  • Continue statement
  • goto statement
  • Arrays in C
  • Strings in C
  • User defined functions
  • Pointers in C
  • Structures in C
  • Recursion in C
  • File Handling in C
  • Preprocessors in C
  • Macros with arguments

Libraries in C

  • Math.h library
  • String.h library
  • ctype.h library
  • Limits.h library

Projects in C

  • 999999 HTML COLORS
  • Tower of hanoi
  • Volume and surface area
  • Library management system
  • Contacts management system
  • Real time calculator in C

Top

Designed By Templateism | Seo Blogger Templates
Powered by Blogger.