Float Exponent from user input : so my question relates to float, I have used double for user input and end result and also for passing between function, the result is 1 when specifier is %lf%.

    	#include <stdio.h>

	double pwra (double, double);

	int main()
	{
	double number, power, xx;
	    printf("Enter Number: ");
	        scanf("%lf", &number);
	    printf("Enter Number: ");
		scanf("%lf", &power);
	xx=pwra (number,power);
	printf("Result: %lf", xx);
	
	return 0;
	}

	double pwra (double num, double pwr)
	{
	int count;
	int result = 1;
                for(count=1;count<=pwr;count++)
                {
                    result = result*num;
                }
				return result;
	}