Skip to content

Instantly share code, notes, and snippets.

@pbattin
Forked from froilan-miranda/Java-Lab-CD10.md
Created January 12, 2017 20:16
Show Gist options
  • Save pbattin/3fb1fb3b37713475ce757670010bd0d3 to your computer and use it in GitHub Desktop.
Save pbattin/3fb1fb3b37713475ce757670010bd0d3 to your computer and use it in GitHub Desktop.

#Sum of the Numbers

##Objectives

  1. To demonstrate your understanding of objects
  2. To demonstrate your understanding of operators
  3. To demonstrate your understanding of user input/output

##Overview

Write a program that asks the user for a number n and prints the sum of the numbers 1 to n

##Unit Test

No Unit Test

##Instructions

  1. Understand how to get input from user
  2. Find solution to sum numbers from 1 to n
  3. Print final answer to screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment