Compare commits

..

2 commits

Author SHA1 Message Date
Nash Brooks
ed18a3201a added some spaces in quadratic.c as well 2022-01-23 05:59:49 -05:00
Nash Brooks
098d750e47 added a bunch of spaces 2022-01-23 05:56:35 -05:00
2 changed files with 8 additions and 10 deletions

View file

@ -14,8 +14,7 @@ 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);
} }
@ -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 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;
} }