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

 

sspiege3@schools.nyc.gov > sumOdds
prev  |  next  |  chance

You are to write a program that will calculate and return the SUM OF ODD numbers in between 1 and 100 inclusive. You must use a loop- and not just return the expected answer of 2500. There is no user input


sumOdds() → 2500

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

public int sumOdds(){ }

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: 100

Copyright Nick Parlante 2017 - privacy