// 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;
}
相关文章: