乘方计算器{:soso_e100:}
[mw_shl_code=c,true]#include <stdio.h>#include<math.h>
#include<windows.h>
int main(void)
{
system("title 乘方计算器");
MessageBox(NULL," < 欢迎使用乘方计算器 > ","诚挚感谢 !",MB_YESNO);
system("color 1b");
int a,b,c,e;
e=1 ;
while (e<=1000000)
{
system("cls");
printf("乘方计算器\n");
printf("输入底数:\n");
scanf("%d",&a);
printf("输入指数:\n");
scanf("%d",&b);
c = pow(a, b);
printf("结果为: %d",c);
sleep(5000);
e=e+1;
}
sleep(5000);
return 0;
}
[/mw_shl_code]
|