1 int i , j ;
2
3 for (i=0; i<3 ; ++i){
4 j = i*10 + 5;
5 cout<<endl;
6 while(j>1){
7 cout<<j;
8 j = j/10;
9 }
10 }
et comme réponse c'est:
1 5
2 15
3 25 2
Je comprends pas d'où sort ce "2". Et effectivement si on fait i*10+5, on a respectivement 0*10+5, 1*10+5,2*10+5 ce qui donne bien 5, 15, 25 mais l'opération j=j/10 se passe quand?
Merci pour votre aide 