# Search:

Type: Posts; User: svo

## Search: Search took 0.22 seconds.

by svo
Replies
9
Views
650

### Re: Quick Code analysis please

[SOLVED]
Thanks everyone!

by svo
Replies
9
Views
650

### Re: Quick Code analysis please

Ahhh THanks! That makes WAY more sense. I don't know... The way you bolded them but explained them... It made so much sense. No, I'm not actually writing this code, it's a comprehension question on...

by svo
Replies
9
Views
650

### Re: Quick Code analysis please

Oh so I followed the logic in your last sentence and it seems to make sense except i couldn't help but notice that when you went through the "return f1( x + 1 ) + x;", you ignored the "+ x" ? is that...

by svo
Replies
9
Views
650

### Re: Quick Code analysis please

I think I sort of see the logic and kinda-sorta understand it up until the last line of "return f1( x + 1 ) + x;" ... :[

by svo
Replies
9
Views
650

### Re: Quick Code analysis please

D: @-) I'm a nooobb.... soo... and well, I'm supposed to be able to do this in my head... So I was wondering if I could get some help seeing the logic behind what is happening in the code..

by svo
Replies
9
Views
650

### Re: Quick Code analysis please

I got this far:
- Return f2(3) is called
- then in the 3 is passed into the f2(int x) right?
- then it's supposed to do the f1( x + 1) + x .... i'm confused about the " + x" ......

by svo
Replies
9
Views
650

Can someone please give me a quick code analysis of what is outputted when the method f1(5) is called?

public in f1( int x )

{

if ( x == 0 )

return 0;
8. ## Thread: AP computer science questions

by svo
Replies
1
Views
590

### AP computer science questions

public int multiply( int n )

{

if (n == 0)

return 1;

else if (n % 2 ==1)
9. ## Thread: AP computer science questions

by svo
Replies
1
Views
792

### AP computer science questions

public int multiply( int n )

{

if (n == 0)

return 1;

else if (n % 2 ==1)
Results 1 to 9 of 9