crisa
5. Ce va afişa următorul program?
6
5. Ce va afişa următorul program?
600
0
#include <iostream>
using namespace std;
void p(int n)
{
if (n)
{cout<<n%5; p(n/5); cout<<n%5; }
else cout<<’ ‘;
}
int main()
{
int n=1234;
p(n); cout<<n;
return 0;
}
100011234 4321123400141441 14414000141441 1441412341100141441 144140001
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