C语言求2的100次幂的结果.docVIP

  • 53
  • 0
  • 约1.32千字
  • 约 2页
  • 2017-06-08 发布于重庆
  • 举报
C语言求2的100次幂的结果

求2的100次幂的结果 #include #include #include #include void main void int a,b,i; char s[40],t[40],*result,m[40]; char *Multi char s[],char t[],int z ; void Change char s[] ; clrscr ; printf Please input a^b: ; scanf %d %d,a,b ; itoa a,s,10 ; strcpy t,s ; result Multi s,t,2 ; strcpy m,result ; for i 3;i b+1;i++ result Multi m,s,i ; strcpy m,result ; printf %d^%d ,a,b ; puts m ; getch ; char *Multi char s[],char t[],int z int l1,l2,i,j,a,r,y; char n[50] ,m[50] ,nn[50] ,result[50] ; void ADD char result[],char nn[],int i ; void Change char s[] ; Change s ; if z%2 0 Change t ; strcpy

文档评论(0)

1亿VIP精品文档

相关文档