Coding Global Background
Coding Global

i have a question about this one fragment

Archived 2 years ago
13 messages
0 members
2 years ago
Open in Discord
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

Replies (13)