Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #107.41K
~123 People Reached
Favorite Forums
Favorite Tags
java x 1
Member Avatar for Nathan_11

I am new to computer programming. Could someone explain me this code... s=0; for(i=0;i<5;i++){ s=2*s+i; } And how did it have the output 0,1,4,11,26;

Member Avatar for JeffGrigg
0
123