1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Java

Connected

Exercise

Odd summing

You wish to know how quickly the sum of the odd number grows up to 100. Why not write a code that does that?

Instructions

100 XP
  • Enter the correct keyword to create the loop.
  • Call the appropriate variable to store the total reached.
  • Use the fitting operation to have i increase by 2 each run.