Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void ko(int &x)
- {
- for(int i=1; i <= 10 ;i++)
- {
- for(int j=1; j<=20 ;j++)
- {
- for(int k=1; k<=30; k++)
- {
- cout<<i<<' '<<j<<' '<<k<<endl;
- if(x+j>100)
- {
- x-=1;
- ko(x);
- }
- if(k==3)
- {
- x*=x;
- return;
- }
- }
- }
- }
- }
- int main()
- {
- int x;
- cin>>x;
- ko(x);
- cout<<"Finished";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement