首页 > 其它 > 题目详情
英语翻译inta;std::cin>>a;intb;std::cin>>b;intvalue=a;intpow=b;intresult=1;for(intcnt=0;cnt=p
题目内容:
英语翻译
int a;
std::cin>>a;
int b;
std::cin>>b;
int value=a;
int pow=b;
int result =1;
for (int cnt=0;cnt =pow;++cnt)
result*=value;
std::cout优质解答
定义一个整型变量a从键盘输入a定义b从键盘输入b定义value,并把a的值赋给value定义pow,并把b的值赋给pow定义整型resule值为1for的这句为:(定义cnt初值为0,如果cnt不等于pow(也就是b),cnt加1)result值乘以value的值...
int a;
std::cin>>a;
int b;
std::cin>>b;
int value=a;
int pow=b;
int result =1;
for (int cnt=0;cnt =pow;++cnt)
result*=value;
std::cout
优质解答
本题链接: