Compare commits
2 commits
33218f0960
...
ed18a3201a
Author | SHA1 | Date | |
---|---|---|---|
|
ed18a3201a | ||
|
098d750e47 |
2 changed files with 8 additions and 10 deletions
|
@ -14,8 +14,7 @@ int main( int argc, char *argv[] ) { //yoinked from the internet argc is number
|
|||
if (x == 0) {
|
||||
puts("uhhhh you entered 0 this wont end");
|
||||
return 0;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
printf("Got: %d\n", x);
|
||||
}
|
||||
|
||||
|
@ -24,8 +23,7 @@ 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
|
||||
if (x & 1 == 1) { //if x is odd
|
||||
x = (3 * x) + 1;
|
||||
}
|
||||
else{
|
||||
} else { //elses should be on the same line as the } from the above if
|
||||
x = x / 2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue