#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<iostream>
double power(double x, double y)
{
double z = 1;
while(y)
{
z *= x;
--y;
}
return z;
}
void main()
{
double x, y, z;
scanf("%lf %lf", &x, &y);
z = power(x, y);标签:lf,include,return,函数,power,double,main From: https://blog.51cto.com/u_15896475/6022969
printf("%lf的%lf次方是%lf\n", x, y, z);