SumOfInput

Sum of the Numbers

Objective:

  • Write a program which prompts the user to input a number, n.
  • The program should respond by printing the sum of the numbers 1 to n.
  • Constraint: No Guassian wizardry !

Purpose:

  • To establish familiarity with
    • Loops
    • User input
    • Object instantation/declaration
    • Method invokation

Resources:

Unit Test

No Unit Test