Simple Literate Program

Table of Contents
Adding up the numbers
Input and Output


This program is made to illustrate the concepts of literate programming. This program receives as input a number, and then adds up all of the numbers between one and that number, and then prints the output. The outline for the program is as follows:

Main Listing =


{Import needed modules}
{Initialize variables}
{Read in a line of input}
{Add up numbers from one to the number given}
{Print results}