Advertisement
Qpel

funkcijos 1 užd

Mar 19th, 2017
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.  
  9.     bool t = 1;
  10.     double y = 0;
  11.     int x=5;
  12.  
  13.     for(int i = 256; i > 1; i--){
  14.         y = pow(x,2) + i / pow(x,2);
  15.     }
  16.     cout << y;
  17.  
  18.  
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement