crisa
20. Se consideră subprogramul recursiv alăturat, S definit incomplet. Cu ce expresie pot fi înlocuite punctele de suspensie astfel încât, în urma apelului S(2), să se afişeze 3 caractere * ?
6
20. Se consideră subprogramul recursiv alăturat, S definit incomplet. Cu ce expresie pot fi înlocuite punctele de suspensie astfel încât, în urma apelului S(2), să se afişeze 3 caractere * ?
600
0
void S(int x)
{ cout<<'*';
if (...) {
cout<<'*';
S(x-1);
}
}
10001x>111001x<2001x>=3001x>0001
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