Message from @DanielKO
Discord ID: 391754251845500957
AND A MUSIC BOT
how is that code?
Looks like JDM already checked out
```MIPS
la $s5, ans6
addi $t8, $zero, 3
addi $t9, $zero, 2
div $t1, $t8
#addi $s5, $HI, 0
mfhi $s5
add $s5, $s5, $t7
mult $s5, $t8
#addi $s5, $LO, 0
mflo $s5
div $s5, $t5
#addi $s5, $LO, 0
mflo $s5
sub $s5, $t3, $s5
la $a0, answer6
li $v0, 4
syscall
la $a0, 0($s5)
li $v0, 1
syscall
la $a0, space
li $v0, 4
syscall
```
wow
I put this in a #nsfw channel
Or just join jdm's other discord
that fggot ha his own?
He has a youtube channel too
Getting back on topic
lol
fag only comes here to complain about people talking in <#377519392956874752>
lol
like JDM
any of you guys ever had to program in assembly?
Yes.
that was most cancer
lol
Had to literally edit the assembly by hand because the compiler was generating wrong code.
wow
that sucks
Back in the CUDA 1.0 days.
```Java
java.lang.NullPointerException
```
FUUUUUUCK OOOOOOOOOOOOOOFFFFFFFFFFFFFFFFFFFFFF
AAAAAAHHHHHHHHHHHHH
lol
post your code dude
Had to translate this
debugg session
Too much to post
```CPP
// The function1 is a recursive procedure defined by:
// function1(n) = 2*n if n <= 4
// = n*function1(n-2) + function1(n-3) + n otherwise.
int function1(int n)
{
if (n <= 4)
{
return 2*n;
}
else
{
int comp = n*function1(n-2) + function1(n-3) + n;
return comp;
}
}
// The main calls function1 by entering an integer given by a user.
void main()
{
int ans, n;
printf("Enter an integer:\n");
// read an integer from user and store it in "n"
scanf("%d", &n);
ans = function1(n);
// print out the solution computed by function 1
printf("The solution is: %d\n", ans);
return;
}
```
I know what's wrong (I think)
I also lost the backup code that was working
There's no `void main` in C++, you drunk?
lmao
you sure about htat?
that