id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

sspiege3@schools.nyc.gov loopaccum > sum100
prev  |  next  |  chance

A method called sum100 adds up all the numbers from 1 to 100, inclusive and returns the answer.


sum100() → 5050

...Save, Compile, Run (ctrl-enter)

public int sum100(){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 201

Copyright Nick Parlante 2017 - privacy