Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void p1(int n, t1 a)
- {
- for (int i = 0; i<n; i++) {
- int potega = 1;
- if (i>0)
- {
- potega = a[i - 1];
- potega *= 2;
- }
- a[i] = potega;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement