Coding Global Background
Coding Global

i have a question about this one fragment

Archiviert 2 years ago
13 Nachrichten
0 Mitglieder
2 years ago
In Discord öffnen
L
Lule

int value=2; int limit=5; int result=1; for(int x=0; x<limit; x++){ result=result*value; } System.out.println(result); why is the result just 2 instead of multiple 2's? Thank you

Antworten (13)