Advertisement
Evilerus

wejściówka 1

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