C语言练习,求x的y次方
#include<stdio.h> #include<math.h> int main() { int x, y, z; printf("Welcome to use!\n"); printf("Please input X:"); scanf("%d",&x); printf("Please input Y:"); scanf("%d",&y); z=pow(x,y); printf("You`ve inputed X=%d/Y=%d\n",x,y); printf("The final result is %d",z); return 0; }