hello friends;
I have an error in my program what is the reason behind it.
please help me and find out why the program is not running succesfully.
I have an error in my program what is the reason behind it.
Code:
/*this is mathematical function of EXPONENT*/
#include<conio.h>
#include<stdio.h>
#include<math.h>
double exponent(float e)
{
float x,i,f=20;
float g;
for (i=1;i<=f;i++)
{
e=pow(x,i);
g=e/(fct(i));
}
return(e);
}
void main()
{
clrscr();
{
double exponent(float e);
float x,y;
printf("\n insert number for exponent\t\t");
scanf("%d",&x);
y=exponent(x);
printf("\n\n the exponent value is%d",y);
}
getch();
}
Comment