This commit is contained in:
zombie maniac 2021-10-09 21:05:09 -04:00
parent 227402e4a6
commit f45049a2fe
2 changed files with 15 additions and 0 deletions

BIN
a.out Executable file

Binary file not shown.

15
hello.c Normal file
View file

@ -0,0 +1,15 @@
#include <stdio.h>
int main() {
long x = 76;
while(x != 1) {
if(x % 2 == 0) {
x /= 2;
}
else {x = (x * 3) + 1;}
printf("%ld\n", x);
}
return 0;
}