The following function prints power 2 from 1 to n (inclusive).
This means that the function will calculate 2^iwhere i = 1, 2, ..., n, in other words, it ican have values from 1 to and include a value n. ie n Included in Inclusive
, , :
2 1 ().
, i = 1, 2, ..., n-1, .. i n-1, n, , i = n-1 - , . n n .