#include
#include
#include
int main()
{
clrscr();
int i,n,a[10];
cout<<"Input: "; cin>>n;
cout<<"Output: ";
for(i=0;i<10;i++)
{
a[i]=pow(n,i);
cout< }
getch();
return 0;
}
Output:
Input: 2
Output: 1 2 4 8 16 32 64 128 256 512
Complete solution for electrical engineering interview question and answers for job.The information helps to solve electronics and electrical engineers interview question and answers.This electrical engineering blog helps engineers a lot.A group of tips is also given here along with C++ programming.
No comments:
Post a Comment