crisa
3. Se consideră următoarea funcţie recursivă. Ce se afişeaza pe ecran la apelul scrie(21)?
6
3. Se consideră următoarea funcţie recursivă. Ce se afişeaza pe ecran la apelul scrie(21)?
600
0
void scrie(int x)
{
if(x>1) scrie (x/2);
cout<<x%2;
}
100011010111001111110010101000100000001
Quiz
Correct!
Sorry! Try again.
Your answer is partly wrong:
Please enter a guess.
Next correct letter in the answer:
Correct answers:
Show answer
1
1
nextpage.htm
0
1
1
0
0
0
2
2
0
0
0
Your score is
:-)
X
Questions answered correctly first time:
Questions completed so far:
You have completed the exercise.
Your time is over!
=>
<=
Index
1
1
0
contents.htm
Geneva,Arial,sans-serif
small
#C0C0C0
#000000
#FFFFFF
#000000
#0000FF
#0000CC
#000000
http://yourserver.com/cgi-bin/FormMail.pl
you@yourserver.com
Please enter your name:
one
two
three
Questions answered correctly first time:
Check
OK
=>
<=
Hint
Show all questions
Show questions one by one
1
0
0