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();
}
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();
}