crisa
10. Ce valoare returnează funcţia la apelul schimba(2324,1, 2)?
6
10. Ce valoare returnează funcţia la apelul schimba(2324,1, 2)?
600
0
long schimba(long n, int c1, int c2)
{
if(n==0) return 0;
else if(n%10==c1) return schimba(n/10,c1,c2)*10+c2;
else return schimba(n/10,c1,c2)*10+n%10;
}
Răspuns: 53541
Gap-fill exercise
Fill in all the gaps, then press "Check" to check your answers. Use the "Hint" button to get a free letter if an answer is giving you trouble. You can also click on the "[?]" button to get a clue. Note that you will lose points if you ask for hints or clues!
Correct! Well done.
Some of your answers are incorrect. Incorrect answers have been left in place for you to change.
The next correct letter has been added to the answer.
1
0
0
0
6
nextpage.htm
0
1
0
0
Your time is over!
Check
OK
Hint
[?]
0
0
Your score is
=>
<=
Index
1
1
0
contents.htm
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