crisa
2. Care este efectul următorului program pentru n=4?
6
2. Care este efectul următorului program pentru n=4?
600
0
#include <iostream>
int n;
void Test (int i)
{
cout<<’*’;
if(i<n) Test(i+1);
cout<<’+’;
}
int main()
{
cout<<”n= “; cin>>n;
Test(1);
return 0;
} ]
Raspuns: ****++++1
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