Title Recursively calculate the sum of all numbers from 1 to n Challenge
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=JAVA&set=recursion.recursion_sum&ch=JRecursionSum1_ch
Platform Name PCEX
Features
Description Using recursion, complete the sum1toN method so that it returns the total sum of all numbers from 1 to N. Examples: sum1toN(3) => 6 sum1toN(5) => 15
Keywords
Author Rully Hendrawan
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=JAVA&set=recursion.recursion_sum&ch=JRecursionSum1_ch
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Java
Natural Language en

Preview