#include<iostream> using namespace std; int main() { bool r=false; long n,m; cout<<"请输入一个自然数:"; cin>>n; m=n; while(!r) { if(0==n%2) n=n/2; else n=n*3+1; if(1==n) r=true; } cout<<m<<"满足角谷猜想。"<<endl; return 1; }