|
Thread: a
-
Jan 17th, 2012, 10:04 AM
#1
Thread Starter
New Member
a
#include<iostream>
using namespace std;
int main(void)
{
int power,ctr,base,answer;
cout<<"Enter Number to raised=";
cin>>power; cin.ignore();
cout<<"Enter Number=";
cin>>base; cin.ignore();
for(ctr=1;ctr<=power;ctr++)
answer=answer*base;
{
cout<<"The answer is="<<answer;
}
cin.get();
return 0;
}
What's wrong with my code? Can you please help me?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|