pow() function is used to calculate the power of any number.this function is included in math.h library so we have to add "#include<math.h>".Let us see example for it.......
Example:
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
clrscr();
printf("2^10 is %f",pow(2,10));
printf("\n3^10 is %f",pow(3,10));
getch();
}
Example:
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
clrscr();
printf("2^10 is %f",pow(2,10));
printf("\n3^10 is %f",pow(3,10));
getch();
}