Skip to content

Instantly share code, notes, and snippets.

@Rudxain
Last active April 23, 2024 10:40
Show Gist options
  • Save Rudxain/bd2f08833c0597b4f3f50ee69dd9a135 to your computer and use it in GitHub Desktop.
Save Rudxain/bd2f08833c0597b4f3f50ee69dd9a135 to your computer and use it in GitHub Desktop.
fn main(){let mut n=7usize;while n!=0{print!("{n} ");n=[n*3+1,n/2][n%2]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment