Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cmath>
- using namespace std;
- const int n=2;
- main()
- {
- int b[n], a=1, p=0, d=2, k=0;
- for(int i=0; i<n; i++)
- {
- double(b[i])=a*pow(double(d),k);
- k++;
- cout<<a[i];
- }
- system("pause");
- getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement