SHARE
TWEET

Untitled

a guest Jan 12th, 2017 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  main()
  6. {
  7.     float sk=1, suma=0;
  8.  
  9.    for(int i=0; i<64; i++)
  10.    {
  11.     suma=suma+sk;
  12.     sk=sk*2;
  13.    }
  14.  
  15.    cout << suma;
  16.  
  17.     return 0;
  18. }
RAW Paste Data
Top