https://github.com/zipcodecore/maven.sumorproduct
https://github.com/zipcodecore/maven.sumorproduct
corejava corejava-chapter3
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zipcodecore/maven.sumorproduct
- Owner: ZipCodeCore
- Created: 2017-10-02T15:39:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-02T01:48:36.000Z (over 7 years ago)
- Last Synced: 2025-04-15T21:39:31.929Z (8 months ago)
- Topics: corejava, corejava-chapter3
- Language: Java
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 59
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ZCW-MicroLabs-JavaFundamentals-SumOrProduct
# Sum or Product
## Overview
* Write a program which prompts the user to input a number, `n`.
* The program should respond by printing the sum or product of the numbers 1 to `n`, contingent on user request.
* **Constraint:** No [Guassian wizardry](http://mathandmultimedia.com/2010/09/15/sum-first-n-positive-integers/) !
## Unit Test
No Unit Test