pow10

Overview :

The "pow10" function is used for calcution 10 to the power of x , where x is an integer.

Syntax :
double pow10(int x);
Description :

The "pow10" function accepts 1 parameters

  • x -> The x is number which is the exponent part of 10

"pow10" function return the value of 10^x.

Example :
#include <stdio.h>
#include <math.h>
#include<conio.h>

 int main()
 {
    int x;
	double ans;
	clrscr();
	printf("\nEnter the value of x : ");
	scanf("%d",&x);
	
	ans = pow10(x);

    printf("Ten to power %d is %lf", x, ans);
    getch();
	return 0;
	
 }

Comments

comments powered by Disqus