C语言 求x的y次方的后n位数答:include <stdio.h>int main(){int x,y,n,i,s=1,t=1; scanf("%d%d%d",&x,&y,&n); for(i=1;i<=n;i++)t*=10; for(i=0;i<y;i++)s=s*x%t; printf("%0*d\n",n,s);return 0;}
“C语言”设计一个递归函数,计算e的n次方。答:int jiecheng(int e,int n){ //int x=e;if(n==1)return e;else { return e*jiecheng(e,--n);} } int main(){ int a,n,e;printf("输入一个数a\n");scanf("%d",&a);printf("输入一个数n\n");scanf("%d",&n);e=jiecheng(a,n);printf("%d的%d次方是%d\n",a,n,e...