1

h2022032 2024-01-13 20:36:59

#include <bits/stdc++.h> using namespace std;

int main() { int a,b=0,n,c=0,d=0; cin>>n; d=n; for(;n=1;) { if(n%2!=0) { cout<<n"3+1"<<'='<<n3+1; } n=n*3+1; if(n%2==0) { cout<<n"/2"<<'='<<n/2; } n=n/2; }

return 0;

}

共 1 条回复

C2024013

这是对的(bushi)