Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace::std;
- int main(){
- long int nt, k, n = 1;
- cin >> "Enter:" >> n;
- while(k < n){
- k++;
- nt += pow(2, k-1); //Почему вывод с единицы а не с 3?
- cout << nt << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement