Compare commits

..

No commits in common. "ed18a3201ae1f9cabd51a173323f786db692cdfd" and "33218f0960fb5d08036d0758ed0089abb64cae40" have entirely different histories.

2 changed files with 10 additions and 8 deletions

View file

@ -14,7 +14,8 @@ int main( int argc, char *argv[] ) { //yoinked from the internet argc is number
if(x == 0){ if(x == 0){
puts("uhhhh you entered 0 this wont end"); puts("uhhhh you entered 0 this wont end");
return 0; return 0;
} else { }
else{
printf("Got: %d\n", x); printf("Got: %d\n", x);
} }
@ -23,7 +24,8 @@ int main( int argc, char *argv[] ) { //yoinked from the internet argc is number
printf("%d\n",x ); //shit like this was difficualt in asm because i had to preserve all my registers printf("%d\n",x ); //shit like this was difficualt in asm because i had to preserve all my registers
if(x & 1 == 1){ //if x is odd if(x & 1 == 1){ //if x is odd
x = (3 * x) + 1; x = (3 * x) + 1;
} else { //elses should be on the same line as the } from the above if }
else{
x = x / 2; x = x / 2;
} }