Advertisement
Evilerus

Untitled

Mar 9th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. void f(int n)
  7. {
  8.     n=pow(n,3);
  9.     while(n>=42)
  10.     {
  11.         cout << n << endl;
  12.         n-=5;
  13.     }
  14. }
  15.  
  16. int main(void)
  17. {
  18.     f(100);
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement