Advertisement
Guest User

Untitled

a guest
Oct 27th, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include<iostream>
  2. #include<cmath>
  3. using namespace std;
  4. const int n=2;
  5.  
  6. main()
  7.  
  8. {
  9.       int b[n],  a=1, p=0, d=2, k=0;
  10.           for(int i=0; i<n; i++)
  11.           {
  12.                 double(b[i])=a*pow(double(d),k);
  13.              
  14.                 k++;
  15.                
  16.                 cout<<a[i];
  17.                  
  18.           }
  19.      
  20. system("pause");
  21. getchar();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement