C++中的算幂// First.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "iostream.h" int main(int argc, char* argv[]) { int value=2; int pow=10; int res=1; cout<<value<<"的"<<pow<<"次幂是:"<<endl; for(int cnt=1;cnt<=pow;++cnt) res=res*value; cout<<res<<endl; return 0; }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2022-01-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2021-06-16
  • 2021-12-31
相关资源
相似解决方案